Search

Showing 7 of 1,216 result(s)

/blog/2018/04/14/laravel-5-dispatching-queued-jobs-immediately-with-dispatch_now

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...

/blog/2018/04/14/laravel-5-dispatching-queued-jobs-with-dispatch

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...

/blog/2018/04/14/laravel-5-encrypting-strings-with-encrypt

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...

/blog/2018/04/14/laravel-5-generating-an-html-field-for-http-verbs-with-method_field

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...

/blog/2018/04/14/laravel-5-generating-csrf-hidden-html-fields-with-csrf_field

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...

/blog/2018/04/14/laravel-5-generating-csrf-session-tokens-with-csrf_token

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...

/blog/2018/04/14/laravel-5-generating-secure-urls-to-assets-with-secure_asset

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.