php artisan make controller in foler code example
Example: laravel controller create command in a folder
However, if you would like to create it in a custom directory then refer to the line below:
php artisan make:controller pathName/controllerName