From 1c7592561f5a834eea6c38a77e43ae3c2ee83609 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Tue, 20 Sep 2022 00:29:29 +1000 Subject: [PATCH] Make app directory consistently lowercase (#187) --- src/Console/InstallsApiStack.php | 8 ++++---- src/Console/InstallsBladeStack.php | 6 +++--- src/Console/InstallsInertiaStacks.php | 4 ++-- .../Controllers/Auth/AuthenticatedSessionController.php | 0 .../Auth/EmailVerificationNotificationController.php | 0 .../Http/Controllers/Auth/NewPasswordController.php | 0 .../Http/Controllers/Auth/PasswordResetLinkController.php | 0 .../Http/Controllers/Auth/RegisteredUserController.php | 0 .../Http/Controllers/Auth/VerifyEmailController.php | 0 .../Http/Middleware/EnsureEmailIsVerified.php | 0 .../api/{App => app}/Http/Requests/Auth/LoginRequest.php | 0 stubs/api/{App => app}/Providers/AuthServiceProvider.php | 0 .../Controllers/Auth/AuthenticatedSessionController.php | 0 .../Controllers/Auth/ConfirmablePasswordController.php | 0 .../Auth/EmailVerificationNotificationController.php | 0 .../Auth/EmailVerificationPromptController.php | 0 .../Http/Controllers/Auth/NewPasswordController.php | 0 .../Http/Controllers/Auth/PasswordResetLinkController.php | 0 .../Http/Controllers/Auth/RegisteredUserController.php | 0 .../Http/Controllers/Auth/VerifyEmailController.php | 0 .../{App => app}/Http/Requests/Auth/LoginRequest.php | 0 stubs/default/{App => app}/View/Components/AppLayout.php | 0 .../default/{App => app}/View/Components/GuestLayout.php | 0 23 files changed, 9 insertions(+), 9 deletions(-) rename stubs/api/{App => app}/Http/Controllers/Auth/AuthenticatedSessionController.php (100%) rename stubs/api/{App => app}/Http/Controllers/Auth/EmailVerificationNotificationController.php (100%) rename stubs/api/{App => app}/Http/Controllers/Auth/NewPasswordController.php (100%) rename stubs/api/{App => app}/Http/Controllers/Auth/PasswordResetLinkController.php (100%) rename stubs/api/{App => app}/Http/Controllers/Auth/RegisteredUserController.php (100%) rename stubs/api/{App => app}/Http/Controllers/Auth/VerifyEmailController.php (100%) rename stubs/api/{App => app}/Http/Middleware/EnsureEmailIsVerified.php (100%) rename stubs/api/{App => app}/Http/Requests/Auth/LoginRequest.php (100%) rename stubs/api/{App => app}/Providers/AuthServiceProvider.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/AuthenticatedSessionController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/ConfirmablePasswordController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/EmailVerificationNotificationController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/EmailVerificationPromptController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/NewPasswordController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/PasswordResetLinkController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/RegisteredUserController.php (100%) rename stubs/default/{App => app}/Http/Controllers/Auth/VerifyEmailController.php (100%) rename stubs/default/{App => app}/Http/Requests/Auth/LoginRequest.php (100%) rename stubs/default/{App => app}/View/Components/AppLayout.php (100%) rename stubs/default/{App => app}/View/Components/GuestLayout.php (100%) diff --git a/src/Console/InstallsApiStack.php b/src/Console/InstallsApiStack.php index 4284e064e..862337253 100644 --- a/src/Console/InstallsApiStack.php +++ b/src/Console/InstallsApiStack.php @@ -17,10 +17,10 @@ protected function installApiStack() // Controllers... $files->ensureDirectoryExists(app_path('Http/Controllers/Auth')); - $files->copyDirectory(__DIR__.'/../../stubs/api/App/Http/Controllers/Auth', app_path('Http/Controllers/Auth')); + $files->copyDirectory(__DIR__.'/../../stubs/api/app/Http/Controllers/Auth', app_path('Http/Controllers/Auth')); // Middleware... - $files->copyDirectory(__DIR__.'/../../stubs/api/App/Http/Middleware', app_path('Http/Middleware')); + $files->copyDirectory(__DIR__.'/../../stubs/api/app/Http/Middleware', app_path('Http/Middleware')); $this->replaceInFile('// \Laravel\Sanctum\Http', '\Laravel\Sanctum\Http', app_path('Http/Kernel.php')); @@ -32,10 +32,10 @@ protected function installApiStack() // Requests... $files->ensureDirectoryExists(app_path('Http/Requests/Auth')); - $files->copyDirectory(__DIR__.'/../../stubs/api/App/Http/Requests/Auth', app_path('Http/Requests/Auth')); + $files->copyDirectory(__DIR__.'/../../stubs/api/app/Http/Requests/Auth', app_path('Http/Requests/Auth')); // Providers... - $files->copyDirectory(__DIR__.'/../../stubs/api/App/Providers', app_path('Providers')); + $files->copyDirectory(__DIR__.'/../../stubs/api/app/Providers', app_path('Providers')); $this->replaceInFile("HOME = '/home'", "HOME = '/dashboard'", app_path('Providers/RouteServiceProvider.php')); // Routes... diff --git a/src/Console/InstallsBladeStack.php b/src/Console/InstallsBladeStack.php index 30ba7ccff..8937bedd2 100644 --- a/src/Console/InstallsBladeStack.php +++ b/src/Console/InstallsBladeStack.php @@ -26,11 +26,11 @@ protected function installBladeStack() // Controllers... (new Filesystem)->ensureDirectoryExists(app_path('Http/Controllers/Auth')); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/App/Http/Controllers/Auth', app_path('Http/Controllers/Auth')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/Http/Controllers/Auth', app_path('Http/Controllers/Auth')); // Requests... (new Filesystem)->ensureDirectoryExists(app_path('Http/Requests/Auth')); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/App/Http/Requests/Auth', app_path('Http/Requests/Auth')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/Http/Requests/Auth', app_path('Http/Requests/Auth')); // Views... (new Filesystem)->ensureDirectoryExists(resource_path('views/auth')); @@ -45,7 +45,7 @@ protected function installBladeStack() // Components... (new Filesystem)->ensureDirectoryExists(app_path('View/Components')); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/App/View/Components', app_path('View/Components')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/View/Components', app_path('View/Components')); // Tests... $this->installTests(); diff --git a/src/Console/InstallsInertiaStacks.php b/src/Console/InstallsInertiaStacks.php index 752b9102d..2076c1c75 100644 --- a/src/Console/InstallsInertiaStacks.php +++ b/src/Console/InstallsInertiaStacks.php @@ -38,7 +38,7 @@ protected function installInertiaVueStack() // Requests... (new Filesystem)->ensureDirectoryExists(app_path('Http/Requests/Auth')); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/App/Http/Requests/Auth', app_path('Http/Requests/Auth')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/Http/Requests/Auth', app_path('Http/Requests/Auth')); // Middleware... $this->installMiddlewareAfter('SubstituteBindings::class', '\App\Http\Middleware\HandleInertiaRequests::class'); @@ -149,7 +149,7 @@ protected function installInertiaReactStack() // Requests... (new Filesystem)->ensureDirectoryExists(app_path('Http/Requests/Auth')); - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/App/Http/Requests/Auth', app_path('Http/Requests/Auth')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/Http/Requests/Auth', app_path('Http/Requests/Auth')); // Middleware... $this->installMiddlewareAfter('SubstituteBindings::class', '\App\Http\Middleware\HandleInertiaRequests::class'); diff --git a/stubs/api/App/Http/Controllers/Auth/AuthenticatedSessionController.php b/stubs/api/app/Http/Controllers/Auth/AuthenticatedSessionController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/AuthenticatedSessionController.php rename to stubs/api/app/Http/Controllers/Auth/AuthenticatedSessionController.php diff --git a/stubs/api/App/Http/Controllers/Auth/EmailVerificationNotificationController.php b/stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/EmailVerificationNotificationController.php rename to stubs/api/app/Http/Controllers/Auth/EmailVerificationNotificationController.php diff --git a/stubs/api/App/Http/Controllers/Auth/NewPasswordController.php b/stubs/api/app/Http/Controllers/Auth/NewPasswordController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/NewPasswordController.php rename to stubs/api/app/Http/Controllers/Auth/NewPasswordController.php diff --git a/stubs/api/App/Http/Controllers/Auth/PasswordResetLinkController.php b/stubs/api/app/Http/Controllers/Auth/PasswordResetLinkController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/PasswordResetLinkController.php rename to stubs/api/app/Http/Controllers/Auth/PasswordResetLinkController.php diff --git a/stubs/api/App/Http/Controllers/Auth/RegisteredUserController.php b/stubs/api/app/Http/Controllers/Auth/RegisteredUserController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/RegisteredUserController.php rename to stubs/api/app/Http/Controllers/Auth/RegisteredUserController.php diff --git a/stubs/api/App/Http/Controllers/Auth/VerifyEmailController.php b/stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php similarity index 100% rename from stubs/api/App/Http/Controllers/Auth/VerifyEmailController.php rename to stubs/api/app/Http/Controllers/Auth/VerifyEmailController.php diff --git a/stubs/api/App/Http/Middleware/EnsureEmailIsVerified.php b/stubs/api/app/Http/Middleware/EnsureEmailIsVerified.php similarity index 100% rename from stubs/api/App/Http/Middleware/EnsureEmailIsVerified.php rename to stubs/api/app/Http/Middleware/EnsureEmailIsVerified.php diff --git a/stubs/api/App/Http/Requests/Auth/LoginRequest.php b/stubs/api/app/Http/Requests/Auth/LoginRequest.php similarity index 100% rename from stubs/api/App/Http/Requests/Auth/LoginRequest.php rename to stubs/api/app/Http/Requests/Auth/LoginRequest.php diff --git a/stubs/api/App/Providers/AuthServiceProvider.php b/stubs/api/app/Providers/AuthServiceProvider.php similarity index 100% rename from stubs/api/App/Providers/AuthServiceProvider.php rename to stubs/api/app/Providers/AuthServiceProvider.php diff --git a/stubs/default/App/Http/Controllers/Auth/AuthenticatedSessionController.php b/stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/AuthenticatedSessionController.php rename to stubs/default/app/Http/Controllers/Auth/AuthenticatedSessionController.php diff --git a/stubs/default/App/Http/Controllers/Auth/ConfirmablePasswordController.php b/stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/ConfirmablePasswordController.php rename to stubs/default/app/Http/Controllers/Auth/ConfirmablePasswordController.php diff --git a/stubs/default/App/Http/Controllers/Auth/EmailVerificationNotificationController.php b/stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/EmailVerificationNotificationController.php rename to stubs/default/app/Http/Controllers/Auth/EmailVerificationNotificationController.php diff --git a/stubs/default/App/Http/Controllers/Auth/EmailVerificationPromptController.php b/stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/EmailVerificationPromptController.php rename to stubs/default/app/Http/Controllers/Auth/EmailVerificationPromptController.php diff --git a/stubs/default/App/Http/Controllers/Auth/NewPasswordController.php b/stubs/default/app/Http/Controllers/Auth/NewPasswordController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/NewPasswordController.php rename to stubs/default/app/Http/Controllers/Auth/NewPasswordController.php diff --git a/stubs/default/App/Http/Controllers/Auth/PasswordResetLinkController.php b/stubs/default/app/Http/Controllers/Auth/PasswordResetLinkController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/PasswordResetLinkController.php rename to stubs/default/app/Http/Controllers/Auth/PasswordResetLinkController.php diff --git a/stubs/default/App/Http/Controllers/Auth/RegisteredUserController.php b/stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/RegisteredUserController.php rename to stubs/default/app/Http/Controllers/Auth/RegisteredUserController.php diff --git a/stubs/default/App/Http/Controllers/Auth/VerifyEmailController.php b/stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php similarity index 100% rename from stubs/default/App/Http/Controllers/Auth/VerifyEmailController.php rename to stubs/default/app/Http/Controllers/Auth/VerifyEmailController.php diff --git a/stubs/default/App/Http/Requests/Auth/LoginRequest.php b/stubs/default/app/Http/Requests/Auth/LoginRequest.php similarity index 100% rename from stubs/default/App/Http/Requests/Auth/LoginRequest.php rename to stubs/default/app/Http/Requests/Auth/LoginRequest.php diff --git a/stubs/default/App/View/Components/AppLayout.php b/stubs/default/app/View/Components/AppLayout.php similarity index 100% rename from stubs/default/App/View/Components/AppLayout.php rename to stubs/default/app/View/Components/AppLayout.php diff --git a/stubs/default/App/View/Components/GuestLayout.php b/stubs/default/app/View/Components/GuestLayout.php similarity index 100% rename from stubs/default/App/View/Components/GuestLayout.php rename to stubs/default/app/View/Components/GuestLayout.php