how to create a controller in another directory in laravel code example
Example: php artisan create controller inside folder
php artisan make:controller App\\pathName/controllerName
php artisan make:controller App\\pathName/controllerName