Skip to content

Commit

Permalink
refactor: replace old index with new filament app
Browse files Browse the repository at this point in the history
  • Loading branch information
alexevladgabriel committed Jan 6, 2025
1 parent af11888 commit e4849d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(private AuthManager $authManager) {}
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);
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function getConfiguration(): array
],
],
'allowed_mounts' => $this->mounts->pluck('source')->toArray(),
'remote' => route('index'),
'remote' => route('filament.app.resources...index'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/RemovedFromServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public function toMail(): MailMessage
->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'));
}
}
2 changes: 1 addition & 1 deletion app/Notifications/ServerInstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ public function toMail(): MailMessage
->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'));
}
}

0 comments on commit e4849d8

Please sign in to comment.