route($modelKey); if (! $model instanceof BaseModel) { throw new RuntimeException('without_trashed should only be configured for models that can be soft deleted'); } if ($model->trashed()) { abort(403, 'Deleted Model'); } return $next($request); } }