Laravel comes with a feature that allows us to scaffold some commonly used classes, like models, factories, notifications, etc. If we want to create a model, for example, we can do it by running: php artisan make:model MyModel But what if we could do this for our custom classes?
I want to make a command that creates an empty report class that extends a different imaginary Report class.
Now we have a command to generate our custom class by simply running this in the terminal: php artisan make:report MyReport