calling controller inside a subfolder laravel code example Example: php artisan create controller inside folder php artisan make:controller App\\pathName/controllerName