Artisan, the command-line interface included with Laravel already provides many commands to do different tasks. Here I am going to make a command for creating new Trait. Trait is not Laravel specific functionality, but it’s a feature in PHP.

laravel trait generator