mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
filament create&edit redirect
This commit is contained in:
11
app/Filament/EditRedirectIndexTrait.php
Normal file
11
app/Filament/EditRedirectIndexTrait.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament;
|
||||
|
||||
trait EditRedirectIndexTrait
|
||||
{
|
||||
protected function getRedirectUrl(): ?string
|
||||
{
|
||||
return static::$resource::getUrl('index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user