Showing 10 of 1,204 results.

Example Use | Laravel 5: Encoding HTML With the "e" Helper Function

…tly valid JavaScript code would be sent to the browser. Since browsers are overly happy to execute any JavaScript included in the document, any forum visitor would see an alert box with hello everyone every time a page was loaded that displayed...

registerCommand($command) | The Laravel Framework Console Kernel

…to ensure its existence by using the all method: 1 <?php 2 3 // Determine if the `Inspire` command was registered or not. 4 $ inspireRegistered = array_key_exists ( 5 ' inspire ' , 6 $ console -> all ( ) 7 ) ; The above coder would check to see...

Laravel 4: Getting User Input

No matter what application you're developing, or what platform you are developing on, it is a safe bet you need to get input from your users some how. Laravel 4 provides a really convenient way to do this using the Input facade. Let's look at a...

Specifying a Default Value | Laravel 4: Getting User Input

…user input. 1 <?php 2 3 Route :: post ( ' user/create ' , function ( ) 4 { 5 // Get the user input as an array. 6 $ input = Input :: all ( ) ; 7 8 // Just dump the array to the page. 9 var_dump ( $ input ) ; 10 } ) ; When this code runs, we will...

The "search" Filters

The search filter(s) are similar to the like filters such that it allows you to filter comments based on some text input. However, the search filter will perform a full-text, fuzzy search (without wildcards) across multiple comment properties.The...

Preamble | License

…ly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous...

13. Use with the GNU Affero General Public License. | License

…have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to...

Laravel 5: Setting Array or Object Values With data_set

…ue of an item in an array or an object property using dot notation. It accepts a reference to a $target array or object; the $key (array key or object property name) of the data to set and the $value to be set. It also defines an optional...

Filter Search