Showing 10 of 2,044 results.

Laravel Array Helper Function: array_get

get($array, $key, $default = null) The get helper method will retrieve an item from the given $array using dot notation. This allows developers to retrieve items from the array at arbitrary depths quickly, without having to use PHP's array syntax....

Creating the Route | Laravel Paginator Pretty URLs

We are going to paginate a list of users. We want to display users with the URL format: http://localhost:8000/users/page/{page} . We are going to use a function called getShowResults in our UsersController . We can express this in our routes.php...

make($value, array $options = []) | Laravel's Bcrypt Hasher

The make method is used to hash a given $value with the provided $options . At the time of writing, the rounds value is the only option that is checked for in the $options array. See the information on the setRounds method for more information on...

jQuery: Checking if an Item is an Array

When writing JavaScript, I am usually using the jQuery library. I also seem to work with arrays a lot. Most of the time I only care if an item is an existing array or not. That's pretty simple to do with jQuery, and looks like this: 1 2 // First,...