Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel abort_if

//The usual way we do check-abort procedure:

if (!$order) {
  abort(404);
}
//Now you can do it in one line:

abort_if(!$order, 404);
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
3+7 =