Showing 7 of 1,216 result(s)
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...
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...
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...
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...
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...
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...
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...