public function __construct(Model $model) { $this->model = $model; $this->is($this->model->eloquent()->getKeyName()); }