Search

Showing 7 of 1,975 result(s)

/blog/2014/04/02/how-does-php-work-with-the-web-server-and-browser#content-introduction

…ngle day). A large amount of web sites and applications are powered by PHP; therefore an understanding of the PHP language is mandatory to fully understand and accept the power behind popular frameworks (such as Laravel, CodeIgniter or Symfony),...

/blog/2014/07/28/laravel-paginator-pretty-urls#content-the-goal

When use the paginator in Laravel, we get URLs like this: http://localhost:8000/users?page=1 and we want URLs like this http://localhost:8000/users/page/1 because why not? When digging through the code for the paginator class, I found that the...

/blog/2016/11/19/laravel-array-helper-function-array_pluck#content-returning-an-array-with-a-keyvalue-pair

We can also instruct the pluck method to return an array that contains both a key and a value. We do this by passing in a third argument to the pluck function: the $key . Let's reuse the people array: We can get an array with everyone's firstName...

/blog/2016/11/21/laravel-facades-part-one-an-introduction-to-facades

…enient way to access Laravel's components. Each facade is bound to some component already registered in the service container. Facades are typically used to provide a simpler interface to an complex underlying subsystem. While some facades...

/blog/2018/04/11/laravel-5-finding-the-first-occurrence-of-an-element-matching-a-condition-with-first#content-example-use

The following code sample is an anonymous function assigned to a variable named $isPostFormat . The following example will use the Str::is helper method to check if a value is of the format /post/* : If a given value satisfies the format, true is...

/blog/2018/04/11/laravel-5-retrieving-nested-array-values-with-pluck#content-returning-an-array-with-a-keyvalue-pair

We can also instruct the pluck method to return an array that contains both a key and a value. We do this by passing in a third argument to the pluck function: the $key . Let's reuse the people array: We can get an array with everyone's firstName...

/blog/2018/04/22/laravel-5-collections-adding-new-elements-to-a-collection-with-put

The put method is used to add a new item to the collection with a given $key and $value . The put method modifies the original Collection instance and returns a reference to it.The following code example highlights the usage of the put method:...