inject_assets
FilamentView::registerRenderHook( 'panels::head.end', fn (): string => Blade::render('@livewireStyles'),);FilamentView::registerRenderHook( 'panels::head.end', fn (): string => Blade::render('@filamentStyles'),);FilamentView::registerRenderHook( 'panels::body.end', fn (): string => Blade::render('@filamentScripts'),);FilamentView::registerRenderHook( 'panels::body.end', fn (): string => Blade::render('@livewireScripts'),);
inject_assets === false
$this->form->fill()
mount()
public/**
vite.config.js
public/
sent = true
<form wire:submit="send"> {{ $this->form }} @if ($sent) <x-alert-container title="Bericht is verzonden" type="success" class="my-6"> We nemen zo snel mogelijk contact met je op. </x-alert-container> @endif <div class="mt-8 flex justify-end"> <x-primary-button> Verstuur </x-primary-button> </div></form>
public function form(Form $form): Form{ return $form->columns(2) ->schema([ TextInput::make('firstName')->required()->label('Voornaam'), FileUpload::make('cv')->required()->columnSpanFull()->label('CV'), ]) ->statePath('data');}public function send(){ if ($this->sent) { return; } $formData = $this->form->getState(); // send mail $this->sent = true;}
Repeater::make('shifts') ->schema([ DatePicker::make('date'), TimePicker::make('startsAt'), TimePicker::make('endsAt') ])
shifts