route('id'); $user = Auth::user(); $link = Link::find($linkId); if (!$link) { return abort(404); } if ($user->id !== $link->user_id) { return abort(403); } return $next($request); } }