App\Repositories\RepositoryInterface::byId PHP Method

byId() public method

Get a model by id.
public byId ( integer $id ) : mixed
$id integer Model id
return mixed
    public function byId($id);

Usage Example

Example #1
0
 /**
  * Find an entry with it's ID
  * @param $id int ID of the Entry
  * @return mixed
  */
 public function byId($id)
 {
     return $this->model->byId($id);
 }