notFound(); } public function notFound(): string { service('analytics')->sessionHash(); // ensure session exists for ownership checks service('seo')->title('Tool not found') ->description('The page you requested does not exist. Browse popular tools instead.') ->noIndex(); // status rides the shared response; body returned as string service('response')->setStatusCode(404); return view('errors/tool_not_found', [ 'popular' => service('finder')->popular(6), 'categories' => service('finder')->categories(), ]); } public function forbidden(): string { service('seo')->title('Access denied')->noIndex(); service('response')->setStatusCode(403); return view('errors/http', [ 'code' => 403, 'title' => 'Access denied', 'message' => 'You do not have permission to view this page.', ]); } public function serverError(): string { service('seo')->title('Something went wrong')->noIndex(); service('response')->setStatusCode(500); return view('errors/http', [ 'code' => 500, 'title' => 'Something went wrong', 'message' => 'Our team has been notified. Please try again in a moment.', ]); } }