Search

Showing 7 of 1,216 result(s)

/blog/2016/11/21/laravel-facades-part-four-facade-class-reference#content-resolving-the-class-behind-a-facade

…ode example, the $className variable would contain the value Illuminate\Auth \AuthManager . This method of determining a facade's underlying class can be expanded on to create a function that will list every facade's underlying class for the...

/blog/2016/11/30/encrypting-and-decrypting-within-laravel-applications#content-the-crypt-facade

Laravel provides many facades to make it easier to quickly build application and test ideas. One such facade is the Illuminate\Support\Facades\Crypt facade, which provides access to whatever implementation is bound to the...

/blog/2016/11/30/laravel-string-pluralization#content-handling-specific-numbers

…ould produce the following result: There are 0 books. However, it is sometimes desirable to handle the case explicitly and return a more appropriate message: It can be seen in the last call to the trans_choice function in the above code example...

/blog/2016/12/07/customizing-the-laravel-artisan-application

…same modifications that can be made to Symfony's console application should also apply to the Artisan console application. Such modifications include changing the default command, application name and application versions string. Since we know...

/blog/2016/12/07/laravel-artisan-custom-styles-custom-progress-bar-styles#content-different-styles-on-different-systems

…with Windows or Unix-like systems. Internally, Symfony checks the DIRECTORY_SEPARATOR constant each time it needs to determine if the command is running on a Windows environment, like so: However, since we are developing commands in the context...

/blog/2016/12/07/laravel-artisan-interacting-with-commands#content-executing-a-command

To execute an Artisan command we first need to invoke the artisan console application. The console application is typically located in the root directory of the Laravel application and is named artisan . Some shells support invoking the...

/blog/2016/12/07/laravel-artisan-the-tinker-command#content-executing-arbitrary-code-statements

…atement; the results of the statement are displayed directly below the statement: However, what makes Tinker a powerful and invaluable tool is the ability to interact with framework components and classes, as well as execute code in the context...