Create Controller and Model in one Artisan Command
Tutorial last revisioned on August 11, 2022 with Laravel 9
Laravel is full of little tricks, and quick ways to generate code with Artisan. One of the recent ones I've found is when you're creating a CRUD record and need to create Model + Controller. You don't need two separate commands for that.
How I was doing it until now: