mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
refactor: replace old index with new filament app
This commit is contained in:
parent
af11888b82
commit
e4849d89d7
@ -18,7 +18,7 @@ class RedirectIfAuthenticated
|
|||||||
public function handle(Request $request, \Closure $next, ?string $guard = null): mixed
|
public function handle(Request $request, \Closure $next, ?string $guard = null): mixed
|
||||||
{
|
{
|
||||||
if ($this->authManager->guard($guard)->check()) {
|
if ($this->authManager->guard($guard)->check()) {
|
||||||
return redirect()->route('index');
|
return redirect()->route('filament.app.resources...index');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
@ -201,7 +201,7 @@ class Node extends Model
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'allowed_mounts' => $this->mounts->pluck('source')->toArray(),
|
'allowed_mounts' => $this->mounts->pluck('source')->toArray(),
|
||||||
'remote' => route('index'),
|
'remote' => route('filament.app.resources...index'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,6 @@ class RemovedFromServer extends Notification implements ShouldQueue
|
|||||||
->greeting('Hello ' . $this->user->username . '.')
|
->greeting('Hello ' . $this->user->username . '.')
|
||||||
->line('You have been removed as a subuser for the following server.')
|
->line('You have been removed as a subuser for the following server.')
|
||||||
->line('Server Name: ' . $this->server->name)
|
->line('Server Name: ' . $this->server->name)
|
||||||
->action('Visit Panel', route('index'));
|
->action('Visit Panel', route('filament.app.resources...index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,6 @@ class ServerInstalled extends Notification implements ShouldQueue
|
|||||||
->greeting('Hello ' . $this->user->username . '.')
|
->greeting('Hello ' . $this->user->username . '.')
|
||||||
->line('Your server has finished installing and is now ready for you to use.')
|
->line('Your server has finished installing and is now ready for you to use.')
|
||||||
->line('Server Name: ' . $this->server->name)
|
->line('Server Name: ' . $this->server->name)
|
||||||
->action('Login and Begin Using', route('index'));
|
->action('Login and Begin Using', route('filament.app.resources...index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user