REBELinBLUE\Deployer\Repositories\EloquentRepository::getById PHP Method

getById() public method

Get's an item from the repository.
public getById ( integer $model_id ) : Model
$model_id integer
return Illuminate\Database\Eloquent\Model
    public function getById($model_id)
    {
        return $this->model->findOrFail($model_id);
    }