Artisan

Writing Custom Laravel Artisan Commands
Laravel Tutorials / August 08, 2017

Writing Custom Laravel Artisan Commands

Learn how you can create some kick-butt custom commands for your Laravel applications using the artisan console.

Laravel’s Artisan command line interface (CLI) extends Symfony’s Console component, with some added conveniences and shortcuts. Follow along if you want to learn how to create some kick-butt custom commands for your Laravel applications.

Read more…
Partyline – A Package to Print to the Artisan Console From Anywhere
Laravel Packages / June 13, 2017

Partyline – A Package to Print to the Artisan Console From Anywhere

Partyline is a new package that allows you to output to the console from outside of command class. This allows you more control on how things are printed and is great for when you need to loop items and show progress or other insights. Here is an example of a normal Command’s handle method that …

Interactive Make Command
Laravel Packages / May 02, 2017

Interactive Make Command

The Interactive Make Command is a new package that allows you to get interactive questions after running php artisan make.

Read more…
Laravel 5.5 Adds Frontend Presets
Laravel 5.5 / April 10, 2017

Laravel 5.5 Adds Frontend Presets

Since Laravel 5.3 the framework has shipped with optional Bootstrap and Vue.js scaffolding so you can quickly get started creating your next app idea with some of the latest tools. These have always been easy to remove, but not everyone wants to use either of those, so in Laravel 5.5 a new Artisan preset command …

Laravel OPcache Package
Laravel Packages / April 05, 2017

Laravel OPcache Package

Appstract has created a Laravel Package that gives you Artisan commands for working with OPcache.

Read more…
In Laravel 5.5 “vendor:publish” Gets A Provider Prompt
Laravel 5.5 / March 13, 2017

In Laravel 5.5 “vendor:publish” Gets A Provider Prompt

Coming in Laravel 5.5 is a change to the vendor publish command that prompts you to select the provider or tag to publish. Making it easier than ever to only publish certain packages.

Read more…
Improved model generation with Laracademy Generators
Laravel Packages / September 02, 2016

Improved model generation with Laracademy Generators

Laravel provides the Artisan command line tool that allows you to save time by including several generators. Some examples include make:controller, make:model, and make:migration. Building on top of this idea is a third party package named Laracademy Generators that will automatically generate your models based on your database structure. Installation: Let’s explore the workflow when … Read more…

News / July 21, 2016

Laravel 5.3 changes the “app” folder

As we are getting closer to the launch of Laravel 5.3 new features, seem to come out almost daily. The latest is a change to the “App” folder and in a move to simplify it, the Events, Jobs, Listeners, and Policies folders are now gone. It remains fully backward compatible and if you run any … Continue reading Laravel 5.3 changes the “app” folderRead more…

Laravel Packages / April 11, 2016

Laravel Console Command Validation

Command Validator is a package that lets you validate Laravel Console Commands. Here is an example of its usage: use Illuminate\Console\Command; use Cerbero\CommandValidator\ValidatesInput; class Example extends Command { use ValidatesInput; public function rules() { return [ ‘year’ => ‘digits:4|min:2000’ ]; } } The rules available come from the default Laravel validation rules but you can … Read more…

Laravel Packages / April 02, 2016

Manage your Language files from Artisan

Laravel Langman is a new package that turns your console into a language file manager. It helps you search, update, add, and remove translation lines right from an Artisan command. Here is an example usage: php artisan langman:show users Which returns a table of results: ‘+———+—————+————-+ | key | en | nl | +———+—————+————-+ | … Read more…