Skip to content

Commit

Permalink
Remove unnecessary stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasnayeen committed Jul 17, 2024
1 parent 66afbf6 commit 69be471
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 552 deletions.
5 changes: 3 additions & 2 deletions src/Commands/PanelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ protected function copyAuthFiles(string $name): void
);
File::copyDirectory(
__DIR__ . '/../../stubs/app/Http/Requests/Auth',
$filePath = app_path('Xumina/' . Str::studly($name) . '/Requests/Auth')
app_path('Xumina/' . Str::studly($name) . '/Requests/Auth')
);
$this->replaceInFile('{{ $panel }}', Str::studly($name), $filePath);
$this->replaceInFile('{{ $panel }}', Str::studly($name), app_path('Xumina/' . Str::studly($name) . '/Requests/Auth/LoginRequest.php'));

foreach (File::files(app_path('Xumina/' . Str::studly($name) . '/Controllers/Auth')) as $file) {
$this->replaceInFile('{{ $panel }}', Str::studly($name), $file->getPathname());
$this->replaceInFile('{{ $inertia }}', Str::studly($name) . '/', $file->getPathname());
Expand Down
54 changes: 0 additions & 54 deletions stubs/app/Http/Controllers/Auth/AuthenticatedSessionController.php

This file was deleted.

41 changes: 0 additions & 41 deletions stubs/app/Http/Controllers/Auth/ConfirmablePasswordController.php

This file was deleted.

This file was deleted.

This file was deleted.

69 changes: 0 additions & 69 deletions stubs/app/Http/Controllers/Auth/NewPasswordController.php

This file was deleted.

29 changes: 0 additions & 29 deletions stubs/app/Http/Controllers/Auth/PasswordController.php

This file was deleted.

51 changes: 0 additions & 51 deletions stubs/app/Http/Controllers/Auth/PasswordResetLinkController.php

This file was deleted.

53 changes: 0 additions & 53 deletions stubs/app/Http/Controllers/Auth/RegisteredUserController.php

This file was deleted.

27 changes: 0 additions & 27 deletions stubs/app/Http/Controllers/Auth/VerifyEmailController.php

This file was deleted.

Loading

0 comments on commit 69be471

Please sign in to comment.