How from my Edit resource page automatically open a modal (create) who is my RelationManger

if i try like this i have an error Typed property Filament\Resources\RelationManagers\RelationManager::$table must not be accessed before initialization class WalkersRelationManager extends RelationManager { protected static string $relationship = 'walkers'; public function mount(): void { parent::mount(); $this->mountTableAction('create'); } public function form(Form $form): Form { /** * @var Registration $registration */ $registration = $this->getOwnerRecord(); return self::createForm($form, $registration); } class RegistrationResource extends Resource public static function getRelations(): array { return [ WalkersRelationManager::class, ]; }
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?