Showing 10 of 1,322 results.

Laravel 5: Accessing and Manipulating Session Data With session

The session function can be used to resolve the \Illuminate\Session\SessionManager instance from the service container, retrieve session values, and even set new session values. These different behaviors are controlled by the types, and number, of...

Compiling Documents

We can compile a document's echo statements, directives, and components using the compile method. Internally, the document will create a compiler instance by invoking the CompilerFactory::makeCompiler() factory method for us. By default, the...

Laravel Artisan General Command: The env Command

The env command is used to simply return the name of the current framework environment. The environment name that is returned is set in the .env file (specifically whatever value is set for the APP_ENV entry). 1 # Display the current framework...

Laravel Application Helper: old

…at an input item with the key name exits: 1 <?php 2 3 // Retrieve the old name. 4 $ userName = old ( ' name ' ) ; 5 6 // Retrieve the old name with 7 // a default value. 8 $ userName = old ( ' name ' , ' John Doe ' ) ; The examples below...

Laravel 5: Hashing Strings With bcrypt

The bcrypt function will return a hashed representation of the given $value . The bcrypt function also accepts an array of $options which can be used to affect how the hash is computed. Each invocation of the bcrypt function should produce a...

Laravel Application Helper Function: validator

…dator ( ) -> make ( request ( ) -> all ( ) , [ 13 ' title ' => ' required|unique:posts|max:255 ' , 14 ' body ' => ' required ' 15 ] ) ; The second example above can be shortened even further. You can supply the arguments for the make instance...

Specifying the Entry (or Collection) | Template IDE Hints

You may specify the collection name by using either the @entry or @collection directive (use whichever feels best for you as they are equivalent): 1 {{# 2 @name The template name. 3 @desc A human-friendly description for your awesome template. 4...

Specifying the Blueprint(s) | Template IDE Hints

You may specify which blueprint(s) apply to any template file by using the @blueprint directive: 1 {{# 2 @name The template name. 3 @desc A human-friendly description for your awesome template. 4 @blueprint blueprintName 5 #}} 6 7 The rest of your...

Filter Search