Showing 10 of 2,133 results.

Adding Our Conditional Check | Laravel Paginator Pretty URLs

Now we need to add that conditional check we talked about earlier: 1 ... 2 if ( count ( $ parameters ) > 0 ) 3 { 4 $ pageUrl .= ' ? ' . http_build_query ( $ parameters , null , ' & ' ) ; 5 } 6 7 $ pageUrl .= $ this -> buildFragment ( ) ; 8 ... And...

Laravel String Helper Function: ucfirst

The ucfirst helper method is used to uppercase the first letter of a string. It defines only one parameter— $string —which is the string that should have its first letter upper cased. This helper method differs from PHP's ucfirst function because...

12. No Surrender of Others' Freedom. | License

If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy...

12. No Surrender of Others' Freedom. | License

If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy...

Specifying Custom Directive Names | The Document Parser

By default, the document parser does not know any custom directives available within an application. This decision was made to help keep the parser as standalone and reusable as possible. However, it is simple to teach the parser about custom...

Laravel 5: Accessing and Manipulating Session Data With session

The session function can be used to resolve the \Illuminate\Session\SessionManager instance from the service container, retrieve session values, and even set new session values. These different behaviors are controlled by the types, and number, of...

Laravel 5: Triggering Events With event

The event helper function is a convenient way to dispatch a particular $event to its listeners. An optional $payload of data can also be supplied when dispatching the event. When the event is dispatched, all its listeners will be called and any...

SORT_NATURAL | Laravel Collection Public API: sortBy

The SORT_NATURAL treats each item as a string while using a "natural ordering" algorithm to perform the sorting. The following code example shows how to use the SORT_NATURAL flag when sorting the $collection created previously (the callback...