Showing 10 of 2,144 results.

The Search Report

Once visitors have made a few searches on your site, you can view them within Statamic's Control Panel by going to "Utilities > Search Report". The search report provides a number of fields to help you make sense of your user's searches: Index:...

Laravel 5: Retrieving Environment Variables With env

The env helper function is used to retrieve the value of an environment variable. You may supply a $default value to be returned if there is no value currently set for the provided $key .The signature of the env function is: 1 function env ( 2 $...

Laravel 5: Conditionally Throwing Exceptions With throw_if

The throw_if function can be used to throw an exception if the supplied $boolean value evaluates to true . The supplied $parameters will be passed along to the exception's constructor.The signature of the throw_if function is: 1 function throw_if...

Editing Large Files on Windows

I haven't had much of a chance to publish any articles or tutorials lately (I do have some awesome ones planned and in the furnace, though!). For this post I'd like to make note of the newest text editor to join my arsenal (Sublime Text and PHP...

Laravel Application Helper Function: factory

factory() The factory function is used to create Eloquent models, generally used when testing an application. The factory method can generally take one of four forms: 1 <?php 2 3 // Return an instance of the 'User' model. 4 $ user = factory ( '...