Yaeger
Yaeger
Explore posts from servers
FFilament
Created by Yaeger on 12/9/2023 in #❓┊help
Filament admin is redirecting back to the same page.
No description
11 replies
FFilament
Created by Yaeger on 12/5/2023 in #❓┊help
Set default value of DateTimePicker
Hi I am trying to prefill a DateTimePicker with a predefined value. I tried this but it doesn't work:
public function form(Form $form): Form
{
return $form
->schema([
DateTimePicker::make('date')
->default(now())
->seconds(false)
->required()
])
->statePath('data');
}
public function form(Form $form): Form
{
return $form
->schema([
DateTimePicker::make('date')
->default(now())
->seconds(false)
->required()
])
->statePath('data');
}
The input is still empty. Probably something easy but I can't figure it out. Thanks 😁
4 replies
FFilament
Created by Yaeger on 11/28/2023 in #❓┊help
How to debug refreshes on submit with file uploads?
I have FileUpload in my form and when submitting the form it refreshes the page. When I remove the file upload from the form, everything works as expected. Anyone have any idea on how to debug that? Cheers
8 replies
FFilament
Created by Yaeger on 10/15/2023 in #❓┊help
Adding `@livewire('notifications')` is not shown in the docs
I just tried to install filament notifications package but the notifications weren't showing up. I checked my other project that uses Notifications and I saw @livewire('notifications') in the base layout. After adding that, everything works as expected. I don't see this in the docs mentioned. Was this supposed to work without @livewire('notifications')? 🤔
9 replies
FFilament
Created by Yaeger on 10/10/2023 in #❓┊help
"Alpine component with ID [rich-editor] not found for package [filament/forms]"
Must have forgotten to install something, but does anyone know what is wrong here? In local development everything was fine.
5 replies
FFilament
Created by Yaeger on 9/26/2023 in #❓┊help
How do you test repeaters?
Livewire::test(CreateFlexListing::class)
->fillForm([
'occupationId' => Occupation::factory()->create()->id,
'description' => 'Looking for help with our Laravel app!',
'shifts' => [
[
'date' => '2023-02-16',
'to' => '17:00',
'from' => '09:00',
],
]
])
->call('save')
->assertHasNoFormErrors();
Livewire::test(CreateFlexListing::class)
->fillForm([
'occupationId' => Occupation::factory()->create()->id,
'description' => 'Looking for help with our Laravel app!',
'shifts' => [
[
'date' => '2023-02-16',
'to' => '17:00',
'from' => '09:00',
],
]
])
->call('save')
->assertHasNoFormErrors();
I have a test like this but it doesn't seem to work:
Component has errors: "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.date", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.startsAt", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.endsAt"
Component has errors: "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.date", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.startsAt", "data.shifts.5c4b1833-1895-4afb-9689-c763674b6672.endsAt"
23 replies
FFilament
Created by Yaeger on 9/26/2023 in #❓┊help
How to reuse forms?
No description
8 replies
FFilament
Created by Yaeger on 9/26/2023 in #❓┊help
How does Repeater work?
When I press the button at the bottom, it just clears the first field. How do I get more than 1 item in the repeater? Is it broken? Or is it not doing what I thought it would be doing?
18 replies
FFilament
Created by Yaeger on 9/26/2023 in #❓┊help
'import' and 'export' may appear only with 'sourceType: module'
Is anyone familiar with this error? I am trying to install filament/forms v3
7 replies
FFilament
Created by Yaeger on 8/26/2023 in #❓┊help
Preset messes up my styling
9 replies
FFilament
Created by Yaeger on 8/26/2023 in #❓┊help
File upload does not look like the docs.
4 replies
FFilament
Created by Yaeger on 8/19/2023 in #❓┊help
How can I disable dark mode in filament forms?
^
7 replies
FFilament
Created by Yaeger on 8/19/2023 in #❓┊help
Markdown data is not returned by $form->getData()
Anything else I need to configure? I'm confused
class NewListing extends Component implements HasForms
{
use InteractsWithForms;

public ?array $data = [];

public function render()
{
return view('livewire.new-listing')->layout('layouts.dashboard');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('title')->required()->autofocus(),
Textarea::make('description')->required(),
MarkdownEditor::make('instructions'),
Textarea::make('dwadaw')
])
->statePath('data');
}

public function create()
{
dd($this->form->getState());
}
}
class NewListing extends Component implements HasForms
{
use InteractsWithForms;

public ?array $data = [];

public function render()
{
return view('livewire.new-listing')->layout('layouts.dashboard');
}

public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('title')->required()->autofocus(),
Textarea::make('description')->required(),
MarkdownEditor::make('instructions'),
Textarea::make('dwadaw')
])
->statePath('data');
}

public function create()
{
dd($this->form->getState());
}
}
2 replies
FFilament
Created by Yaeger on 5/21/2023 in #❓┊help
Issue installing filament/notifications
3 replies
FFilament
Created by Yaeger on 5/21/2023 in #❓┊help
A black overlay shows for a fraction of a second when loading the page
7 replies
FFilament
Created by Yaeger on 5/21/2023 in #❓┊help
Unable to install Filament
85 replies