Search

Showing 7 of 1,975 result(s)

/blog/2016/11/30/laravel-collection-public-api-sortby#content-sortlocalestring

The SORT_LOCALE_STRING treats each item as a string, while also taking into account the current locale, when doing the comparison. The following code example shows how to use the SORT_LOCALE_STRING flag when sorting the $collection created...

/blog/2017/07/23/rebuilding-stillat#content-looking-forward

The process of rebuilding the site has been fun, and there is still much work to be done. However, I am glad that the brunt of the work is done so that I can get back to publishing content again more consistently. I also have some ideas for video...

/blog/2018/04/21/laravel-5-facades#content-creating-a-facade-alias

…Namespace". We could create an alias like so: Aliasing Other Classes Classes, other than facades, can be added to the aliases configuration entry. This will cause them to be available under whatever name was provided, and in the global namespace....

/blog/2018/04/22/laravel-5-collections-executing-a-function-on-all-collection-elements-with-each

The each method accepts a $callback which will be called on each item in the collection. If the $callback returns false , the each method will break from its iterator and return a reference back to the original Collection instance. The callback...

/blog/2018/04/22/laravel-5-collections-executing-a-function-on-collection-elements-with-eachspread

The eachSpread method is used to execute the provided $callback function on each element in the collection. The element's values will become arguments to the callback function.The following example demonstrates the use of the eachSpread method:...

/blog/2022/05/04/working-with-dynamic-variables-in-antlers-runtime#content-using-the-scope-tag

The first technique we will look at to dynamically fetch our alt will be to use the scope tag to alias everything. This will have the effect of pushing all of our root data into an array for us. This will then in turn let us use variable...

/blog/2014/12/13/semantic-ui-paginator-for-laravel-4#content-step-2-the-paginator-view

…e paginator.php in a folder that I named semantic . The paginator view looks like this: The paginator view is responsible for taking a $paginator object from Laravel and rendering the paginator's HTML container. It also makes a call to a render()...