Search

Showing 7 of 1,216 result(s)

/blog/2018/04/14/laravel-5-reporting-application-exceptions-with-report

The report function is used to report an exception to the applications exception handler. By default, the application exception handler is located at app/Exceptions/Handler.php . The report function will invoke the report method of the application...

/blog/2018/04/14/laravel-5-resolving-authentication-policies-with-policy

The policy helper function can be used to retrieve a policy (a policy class can be any valid PHP class) instance for a given $class . The $class can be either a string or an object instance. If no policies for the given $class have been registered...

/blog/2018/04/14/laravel-5-retrieving-environment-variables-with-env

The env helper function is used to retrieve the value of an environment variable. You may supply a $default value to be returned if there is no value currently set for the provided $key .The signature of the env function is:The following examples...

/blog/2018/04/14/laravel-5-throwing-http-exceptions-with-abort

The abort function will throw an instance of "Symfony\Component\HttpKernel\Exception\HttpException" with the given $code , $message and any $headers supplied. These exceptions can be caught and handled through the application's kernel. If the...

/blog/2018/04/14/laravel-5-triggering-events-with-event

The event helper function is a convenient way to dispatch a particular $event to its listeners. An optional $payload of data can also be supplied when dispatching the event. When the event is dispatched, all its listeners will be called and any...

/blog/2018/04/15/laravel-5-checking-if-a-variable-holds-a-value-with-filled

The filled helper function is the logical opposite of the blank helper function, and can be used to quickly determine if the provided value has a non-null, or non-empty value. The provided $value is considered filled if any of the following...

/blog/2018/04/15/laravel-5-checking-if-the-script-is-executing-on-a-windows-machine-with-windows_os

The windows_os helper function can be used to determine if the host server is running a Microsoft Windows® operating system. The function returns either true —if the server is running Windows®—or false —if the server is not running Windows®.The...