cigoler
cigoler
FFilament
Created by cigoler on 8/15/2023 in #❓┊help
KeyValue collapsing before can add a row
6 replies
FFilament
Created by cigoler on 8/15/2023 in #❓┊help
KeyValue collapsing before can add a row
I used sail down to make room for a new laravel instance - and the old page was still up in my browser and the add row button 'works' on there now... weird.
6 replies
FFilament
Created by cigoler on 8/15/2023 in #❓┊help
KeyValue collapsing before can add a row
I'll set it up now. Wish I had a Mac for this though so I could run Herd (etc).
6 replies
FFilament
Created by Tritus on 8/2/2023 in #❓┊help
[V3] Blade components do not have the good colour
I've run into the same problem, just curious if we know why? I'm presuming it's something I've done wrong as usual - but basically followed the manual steps for installing tailwind etc into an existing laravel project as per the recommendations on the Forms documentation. The boot override works, though.
19 replies
FFilament
Created by cigoler on 4/24/2023 in #❓┊help
createOptionForm - how to import form schema, is it possible?
Yeah all fixed - right on both counts. Sorry again Dan, you're a lifesaver.
15 replies
FFilament
Created by cigoler on 4/24/2023 in #❓┊help
createOptionForm - how to import form schema, is it possible?
Oh man, I did not, no. I'm shifting uncomfortably in my seat now. Is that documented yet? Either way that gets me to a point where the modal now looks like it's loading the overlay but no form is showing. But I'll take it, that's progress!
15 replies
FFilament
Created by cigoler on 4/24/2023 in #❓┊help
createOptionForm - how to import form schema, is it possible?
Sorry @Dan Harrin , can you advise please. I'm sure I'm doing something super obviously wrong but I'm tearing my hair out (and don't have much left to begin with). I've created a brand new project, installed Jetstream, Filament Admin, Filament Forms, followed the instructions for both, and just for testing purposes created an additional model called Department with a single name field, and linked it to the user model with a BelongsTo: User model:
public function department()
{
return $this->belongsTo(Department::class);
}
public function department()
{
return $this->belongsTo(Department::class);
}
Create.php:
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('name')->required(),
Forms\Components\Select::make('department')
->options(\App\Models\Department::pluck('name', 'id')->toArray())
->relationship('department', 'name')
->createOptionForm([
Forms\Components\TextInput::make('name')->required(),

]),
];
}
protected function getFormSchema(): array
{
return [
Forms\Components\TextInput::make('name')->required(),
Forms\Components\Select::make('department')
->options(\App\Models\Department::pluck('name', 'id')->toArray())
->relationship('department', 'name')
->createOptionForm([
Forms\Components\TextInput::make('name')->required(),

]),
];
}
That should work shouldn't it? But when I click the button to bring up the modal, a network request is sent to fetch the modal, but nothing else happens and nothing shows. Am I missing something here? Again I don't want to be that guy, so I am sorry.
15 replies
FFilament
Created by cigoler on 4/24/2023 in #❓┊help
createOptionForm - how to import form schema, is it possible?
I'm being gaslighted day to day by AI chat bots and now FIlament!? When will it end. I guess I was so preoccupied with getting the modal to appear I didn't even think that far ahead as to what it was actually going to create. My bad guys, sorry, thanks for the help.
15 replies
FFilament
Created by cigoler on 4/24/2023 in #❓┊help
createOptionForm - how to import form schema, is it possible?
15 replies
FFilament
Created by cigoler on 4/19/2023 in #❓┊help
Edit Form multiselect with Spatie laravel-Permission - Struggling to get it to work
I think this might be the problem:
protected function getFormModel(): string
protected function getFormModel(): string
should be User at the end, not sure where I got string from.
7 replies
FFilament
Created by cigoler on 4/19/2023 in #❓┊help
Edit Form multiselect with Spatie laravel-Permission - Struggling to get it to work
7 replies
FFilament
Created by cigoler on 4/19/2023 in #❓┊help
Edit Form multiselect with Spatie laravel-Permission - Struggling to get it to work
protected function getFormModel(): string
{
return $this->user;
}

public function mount(): void
{
$this->form->fill([
'name' => $this->user->name,
'slug' => $this->user->slug,
'email' => $this->user->email,
]);
}
protected function getFormModel(): string
{
return $this->user;
}

public function mount(): void
{
$this->form->fill([
'name' => $this->user->name,
'slug' => $this->user->slug,
'email' => $this->user->email,
]);
}
And using
->relationship('roles', 'name')
->relationship('roles', 'name')
is just producing that
Illuminate \ Contracts \ Container \ BindingResolutionException target class not found
Illuminate \ Contracts \ Container \ BindingResolutionException target class not found
error from earlier. I'm guessing I'm doing something fundamentally wrong or it's specific to the spatie package.
7 replies