Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel tricks and tips

//$user = User::find($id);
//if (!$user) { abort (404); }
//=> do this
$user = User::findOrFail($id);
//@sujay
Source by laravel-news.com #
 
PREVIOUS NEXT
Tagged: #laravel #tricks #tips
ADD COMMENT
Topic
Name
7+3 =