Showing 10 of 2,044 results.

Laravel Collection Public API: slice

slice($offset, $length = null, $preserveKeys = false) The slice method is used to return a slice, or portion of the collection starting at the given $offset . The $offset tells the slice method where to begin when creating the collection. For...

Implementing Laravel Artisan Console Commands

…ty. The $signature property is used to specify what arguments and options the command can accept (this property did not exist in Laravel versions prior to version 5.1; options and arguments used to be defined using the getOptions and getArguments...

Customizing The Laravel Artisan Application

…on further. The Artisan console application ( Illuminate\Console\Application ) extends Symfony's console application ( Symfony\Component\Console\Application ); this means that the same modifications that can be made to Symfony's console...

Laravel Task Scheduler: Limiting the Execution of Tasks

…ossible to limit the execution of tasks based on some criteria that developers define, as well as limit a tasks execution based on the current environment.Limiting the environments the task can run in is done using the environments($environments)...

Modifying the Windows Hosts File

This post will explain how to modify the hosts file on a Windows machine (this post will work for Windows Vista and newer). There are a few different reasons you may need to modify the hosts file, and the most common reason I have seen so far is...