@@ -128,7 +128,7 @@ protected function installLivewireStack()
128
128
129
129
// Update Configuration...
130
130
$ this ->replaceInFile ('inertia ' , 'livewire ' , config_path ('jetstream.php ' ));
131
- $ this ->replaceInFile ("'guard' => 'web' " , "'guard' => 'sanctum' " , config_path ('auth.php ' ));
131
+ // $this->replaceInFile("'guard' => 'web'", "'guard' => 'sanctum'", config_path('auth.php'));
132
132
133
133
// NPM Packages...
134
134
$ this ->updateNodePackages (function ($ packages ) {
@@ -231,7 +231,7 @@ protected function livewireRouteDefinition()
231
231
{
232
232
return <<<'EOF'
233
233
234
- Route::middleware(['auth', 'verified'])->get('/dashboard', function () {
234
+ Route::middleware(['auth:sanctum ', 'verified'])->get('/dashboard', function () {
235
235
return view('dashboard');
236
236
})->name('dashboard');
237
237
@@ -275,7 +275,7 @@ protected function installInertiaStack()
275
275
});
276
276
277
277
// Update Configuration...
278
- $ this ->replaceInFile ("'guard' => 'web' " , "'guard' => 'sanctum' " , config_path ('auth.php ' ));
278
+ // $this->replaceInFile("'guard' => 'web'", "'guard' => 'sanctum'", config_path('auth.php'));
279
279
280
280
// Tailwind Configuration...
281
281
copy (__DIR__ .'/../../stubs/inertia/tailwind.config.js ' , base_path ('tailwind.config.js ' ));
@@ -377,7 +377,7 @@ protected function inertiaRouteDefinition()
377
377
{
378
378
return <<<EOF
379
379
380
- Route::middleware(['auth', 'verified'])->get('/dashboard', function () {
380
+ Route::middleware(['auth:sanctum ', 'verified'])->get('/dashboard', function () {
381
381
return Inertia\Inertia::render('Dashboard');
382
382
})->name('dashboard');
383
383
0 commit comments