Showing 10 of 1,280 results.

Getting the Environment Name in Laravel 4

Environments in Laravel 4 are a great way to develop your application and have it respond to the environment it is running in. For example, most applications have two environments that they will ever run in: local and production . You can think of...

Creating the PrettyPaginator Class | Laravel Paginator Pretty URLs

Create a new file named PrettyPaginator.php somewhere where Laravel and Composer can find it. For this tutorial, I will just be declaring it in the global namespace. Also, make sure to import (or use ) Laravel's Paginator class: 1 <?php 2 3 use...

rounds | Laravel 5: Hashing Strings With bcrypt

…ception will be thrown. The rounds option is synonymous with the cost option when using PHP's password_hash or crypt functions. Increasing the rounds will also increase the time required to compute the hash. The default value for this option is...

Laravel: Available Hashing Methods

Even though Laravel only provides a Illuminate\Contracts\Hashing\Hasher implementation for the bcrypt function, there are many more hashing functions that are available to developers. The following functions are available through the use of PHP's...

Using Facades | Laravel 5 Facades

Laravel's facades are used just like any other static class, with the exception that facades are redirecting method calls to an actual class instance. Facades are typically imported at the top of the source file, along with any other classes that...

Pascal Case | Laravel 5.5 String Helper Function: studly

Laravel's studly method can also be used to generate Pascal Cased style strings. Both styles are the same as camel case with the first letter capitalized. Because the studly method does not affect the case of any letters after the first letter, we...

Ranges | Laravel 5: String Pluralization Syntax

Laravel's translation components allow for a simple way to express ranges of numbers when defining language files; we've seen many of the ways to do this in previous sections. However, we will explore them again in this section.

Translation Namespaces | Laravel Localization: The File Loader

…m the group and language line with the :: character sequence. Because of this, both function calls in the following example will return the same result: 1 <?php 2 3 // The following function calls are assuming the 'en' locale, using 4 // the...

Filter Search