refactor: replace old index with new filament app

This commit is contained in:
Scai 2025-01-06 17:32:18 +02:00
parent af11888b82
commit e4849d89d7
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ class RedirectIfAuthenticated
public function handle(Request $request, \Closure $next, ?string $guard = null): mixed
{
if ($this->authManager->guard($guard)->check()) {
return redirect()->route('index');
return redirect()->route('filament.app.resources...index');
}
return $next($request);

View File

@ -201,7 +201,7 @@ class Node extends Model
],
],
'allowed_mounts' => $this->mounts->pluck('source')->toArray(),
'remote' => route('index'),
'remote' => route('filament.app.resources...index'),
];
}

View File

@ -52,6 +52,6 @@ class RemovedFromServer extends Notification implements ShouldQueue
->greeting('Hello ' . $this->user->username . '.')
->line('You have been removed as a subuser for the following server.')
->line('Server Name: ' . $this->server->name)
->action('Visit Panel', route('index'));
->action('Visit Panel', route('filament.app.resources...index'));
}
}

View File

@ -63,6 +63,6 @@ class ServerInstalled extends Notification implements ShouldQueue
->greeting('Hello ' . $this->user->username . '.')
->line('Your server has finished installing and is now ready for you to use.')
->line('Server Name: ' . $this->server->name)
->action('Login and Begin Using', route('index'));
->action('Login and Begin Using', route('filament.app.resources...index'));
}
}