@props([ 'wireModel' => 'tableSearch',])<div x-id="['input']" {{ $attributes->class(['fi-ta-search-field']) }}> <label x-bind:for="$id('input')" class="sr-only"> {{ __('filament-tables::table.fields.search.label') }} </label> <x-filament::input.wrapper inline-prefix prefix-icon="heroicon-m-magnifying-glass" prefix-icon-alias="tables::search-field" :wire:target="$wireModel" > <x-filament::input autocomplete="off" inline-prefix :placeholder="__('filament-tables::table.fields.search.placeholder')" type="search" :wire:model="$wireModel" wire:keydown.enter="getModelLabel" x-bind:id="$id('input')" :wire:key="$this->getId() . '.table.' . $wireModel . '.field.input'" /> </x-filament::input.wrapper></div>
@props([ 'wireModel' => 'tableSearch',])<div x-id="['input']" {{ $attributes->class(['fi-ta-search-field']) }}> <label x-bind:for="$id('input')" class="sr-only"> {{ __('filament-tables::table.fields.search.label') }} </label> <x-filament::input.wrapper inline-prefix prefix-icon="heroicon-m-magnifying-glass" prefix-icon-alias="tables::search-field" :wire:target="$wireModel" > <x-filament::input autocomplete="off" inline-prefix :placeholder="__('filament-tables::table.fields.search.placeholder')" type="search" :wire:model.live.debounce.500ms="$wireModel" x-bind:id="$id('input')" :wire:key="$this->getId() . '.table.' . $wireModel . '.field.input'" /> </x-filament::input.wrapper></div>
$component->errors();
$component = livewire(CreateHorseShare::class) ->fillForm([ 'user_id' => $user->id, 'horse_id' => $horse->id, 'quantity' => 11, ]) ->call('create') ->assertHasFormErrors([ 'quantity' => 'required' ]);
it('can create author', function () { expect(Author::count())->toBe(0); livewire(ManageAuthors::class) ->callAction(CreateAction::class, [ 'name' => 'New Name', 'email' => '[email protected]' ]) ->assertHasNoActionErrors(); $createdAuthor = Author::first(); expect($createdAuthor->name)->toBe('New Name'); expect($createdAuthor->email)->toBe('[email protected]'); expect(Author::count())->toBe(1);});
Select::make('product_id') ->live() ->required() ->relationship('product', 'name') ->searchable(), TextInput::make('quantity') ->required() ->live() ->hint(function (Get $get) { $productId = $get('product_id'); if ($productId) { // Run query to get quantity and return } return null; }) ->integer()
$this->dispatch('update-balance');
#[On('update-balance')] public function updateBalance() { return; }
FileUpload::make('document_link') ->imagePreviewHeight('60') ->label('Document') ->disk('s3') ->directory('user-documents') ->visibility('public') ->openable() ->acceptedFileTypes(['application/pdf']),