Showing 10 of 2,055 results.

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,...

Rebuilding Stillat.com

This is a blog post that I thought I was going to write about ten months ago; this is captured in the following public post I made on Twitter: Well that's almost embarrassing! Even with the fact that it took me about two months to start working on...

Laravel Artisan General Command: The name Command

…used to set the application namespace. It accepts only one argument, the new name of the application namespace. In a new Laravel installation, the application namespace is set to App , as can be seen in the following code snippet (both PHP code...