Showing 10 of 2,055 results.

Laravel String Helper Function: contains

The contains helper method will check if any of the $needles are in the given $haystack . If any of the given $needles are found in the $haystack , the method will return true , otherwise it returns false . $needles can be any value that can be...

Creating a Custom Statamic 500 Server Error Page: Part Two

…generic server error page that would display the same information regardless of what type of error was raised within the site's code base. In this article, we will create a new server error page with the added benefit that we will be able to...

I'm Getting The Wrong Data? | Laravel 4: Getting User Input

So we know how to get the input from the user, but how do we handle the occasional situation where we have ambiguous input? For example say we have a form field named name set to John Doe for a user's name using a POST request. In addition we also...

Laravel URL Helper Function: route

…rs = [], $absolute = true, $route = null) The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and $absolute ). It acts...

Laravel 5: Generating URLs to Named Routes With route

The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and $absolute ). It acts a shortcut to calling the...

Laravel Application Helper Function: validator

…tor function (all arguments are optional), the function will return a Illuminate\Contracts\Validation\Factory implementation instance (the default implementation will be an instance of Illuminate\Validation\Factory ). Using the validator function...

Laravel Artisan Queue Command: The queue:flush Command

…jobs. It accepts no arguments or options and can be called like so: 1 # Flush all the failed queue jobs. 2 php artisan queue:flush This command will remove all entries from the failed_jobs database table. It accomplishes this by calling the flush...