Showing 7 of 1,216 result(s)
The dispatch_now function can be used to process a job within the current PHP process. This function will skip the job queue entirely and execute the job's task immediately.The signature of the dispatch_now function is:We will create a simple job...
The dispatch helper function can be used to push a new job onto the job queue (or dispatch the job). This function returns a new instance of "\Illuminate\Foundation\Bus\PendingDispatch"; having access to this class instance will allow you to...
The encrypt helper function can be used to encrypt a given string value. The function resolves the configured "Illuminate\Contracts\Encryption\Encrypter" implementation from the Service Container and then calls the encrypt method on the Encrypter...
The method_field helper function is a simple function that returns a new instance of "Illuminate\Support\HtmlString" The contents of the HtmlString instance is a hidden HTML input field with the name _method and the a value of $method .The...
The csrf_field function can be used to generate a hidden HTML element containing the value of the CSRF token. These tokens can help to prevent cross-site request forgeries.The signature of the csrf_field function is: function csrf_field();For...
The csrf_token (cross-site request forgery token) function is a shortcut for retrieving the CSRF token from the session storage. CSRF Token The CSRF token is stored in the session and is a random string 40 characters in length. It is generated...
The secure_asset function will return a URI composed of the application's URI and the given $path . It internally makes a call to the asset helper function and always passes true as the argument for the $secure parameter.