Skip to content

Commit

Permalink
Removes unused replace
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Nov 27, 2023
1 parent e9e004c commit 5958500
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ protected function installLivewireStack()
(new Filesystem)->copyDirectory(__DIR__.'/../../stubs/livewire/resources/views/auth', resource_path('views/auth'));

// Routes...
$this->callSilent('install:api');
$this->replaceInFile('auth:api', 'auth:sanctum', base_path('routes/api.php'));
$this->call('install:api');

if (! Str::contains(file_get_contents(base_path('routes/web.php')), "'/dashboard'")) {
(new Filesystem)->append(base_path('routes/web.php'), $this->livewireRouteDefinition());
Expand Down Expand Up @@ -445,7 +444,6 @@ protected function installInertiaStack()

// Routes...
$this->call('install:api');
$this->replaceInFile('auth:api', 'auth:sanctum', base_path('routes/api.php'));

copy(__DIR__.'/../../stubs/inertia/routes/web.php', base_path('routes/web.php'));

Expand Down

0 comments on commit 5958500

Please sign in to comment.