Showing 10 of 1,278 results.

Laravel URL Helper Function: url

…es are equivalent: 1 use Illuminate \ Support \ Facades \ Url ; 2 3 // Using the Url facade. 4 Url :: to ( ' arbitraryUrl ' ) ; 5 6 // Using the url helper function. 7 url ( ' arbitraryUrl ' ) ; both calls would result in the following URL: 1...

An Introduction to Laravel View Error Bags

…Bag instance. 6 $ viewErrorBag = new ViewErrorBag ; 7 8 // Determine if the default MessageBag 9 // instance is empty, which in this case 10 // is true. 11 $ viewErrorBag -> isEmpty ( ) ; The following articles detail each of the public API...

Laravel URL Helper Function: action

…<?php 2 3 Route :: get ( ' sayHello/{name} ' , ' ExampleController@sayHello ' ) ; Calling the action helper function like so: 1 <?php 2 3 action ( ' ExampleController@sayHello ' , [ ' name ' => ' Jim ' ] ) ; would return the following URL: 1...

The Laravel Application Console Kernel

Each application contains a console kernel. The console kernel is defined in the app/Console/Kernel.php (this will be referred to as the application console kernel) file. The kernel class that exists in that file extends Laravel's console kernel...

Laravel Task Scheduling: Managing Task Output

Laravel's task scheduling system makes it simple to manage the output from your tasks, if any. Output from task processes can be appended to a file or emailed to any given email address (provided that email services have been previously...

Laravel Collection Public API: __toString

__toString() When a Collection instance is cast into a string, its JSON representation is returned as the result. Internally this is accomplished by returning the results of the collection's toJson (discussed in the Laravel Collection Public API:...

Laravel Localization: The File Loader

…token is invalid. ' , 20 ' sent ' => ' We have e-mailed your password reset link! ' , 21 ' reset ' => ' Your password has been reset! ' , 22 23 ] ; The individual PHP files containing the translation lines are referred to as "groups". So for a...