Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 404

//Some exceptions describe HTTP error codes from the server. For example, this may be a "page not found" error (404),
//In order to generate such a response from anywhere in your application, you may use the abort helper:

return abort(404);
// OR
return abort(404, "page not found");
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
8+7 =