*/ public static function form(): array { return [ TextInput::make('label') ->rules(fn (Get $get) => EditChannel::rules($get())['label']), Checkbox::make('global') ->label('Is Global (Accessible in all projects)'), ]; } /** * @param array $data */ public static function action(NotificationChannel $channel, array $data): void { /** @var \App\Models\User $user */ $user = auth()->user(); app(EditChannel::class)->edit($channel, $user, $data); } }