Showing 10 of 2,055 results.

The Solution | MySQL: Root Element Is Missing (Windows 8.1)

The solution that worked for me was to find the connections.xml and settings.config file in the %appdata%\Oracle\MySQL Notifier folder and delete them. I did inspect both files before I deleted them, honestly the settings.config file looked fine....

Intervals | Laravel String Pluralization

Specifying every number required for a given translation message can be tedious, or even impossible. However, intervals can be specified to make working with large groups of numbers easier. The syntax for intervals comes directly from the ISO...

Laravel: Calling Artisan Commands From Your Application

This little tip will show you how to run Artisan commands from within your applications code, if you need to. 1 <?php 2 3 Route :: get ( ' example ' , function ( ) 4 { 5 // Call and Artisan command from within your application. 6 Artisan :: call (...

Example Use | Laravel 5: Ensuring a Value is an Array With wrap

…n checkDomains ( $ domains ) { 2 if ( ! is_array ( $ domains ) ) { 3 $ domains = ( array ) $ domains ; 4 } 5 6 foreach ( $ domains as $ domain ) { 7 // Perform some operation on the domains array. 8 } 9 } We could do the same thing using the wrap...

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