Showing 10 of 1,204 results.

Laravel 5: Determining if a Variable Holds a Value With blank

…trueThe signature of the blank function is: 1 function blank ( 2 $ value 3 ) ;The following example demonstrates the basic usage of the blank function: 1 // Set a value to null. 2 $ testValue = null ; 3 4 if ( blank ( $ testValue ) ) { 5 //...

Laravel Application Helper Function: abort

…ed through the application's kernel. If the $code supplied is 404 , the abort function will return an instance of Symfony\Component\HttpKernel\Exception\NotFoundHttpException using only the user supplied $message . The following example assumes...

Laravel 5: Recover From Possible Exceptions With rescue

The rescue function can be used to attempt execution of an operation that has the potential to throw an exception. The rescue function will allow you to specify a default value, through the $rescue parameter that will be returned if the operation...

Filter Search