/** * Get the model name, without the namespace. * * @param \Illuminate\Database\Eloquent\ModelNotFoundException $error * @return string */ protected function getModelName(ModelNotFoundException $error) { return $this->resources->name($error->getModel()); }