Pan
Custom Action
I tried but it still does the same, I also added the
use App\Models\User;
Also for some reason the ->options(Equipment::query()->pluck('name','barcode'))
stopped working so I tried temporarily the options with hard coded options and I get this error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given
But focusing on the main issue is that it does the same where it also creates a new record instead of associating the user_id to the VOM19 replies
Custom Action
Thanks it seem to should work fine now since I get a new error after trying the code you gave.
I get an error
SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value
I also have in my
AppServiceProvider.php
19 replies
Change relation manager to instead creating a new record, select from an existing record to attach.
I found out that there is an appropriate headeraction for it using "AssosciateAction" at https://filamentphp.com/docs/3.x/panels/resources/relation-managers#associating-and-dissociating-records
4 replies
Moving specific Resource for a different panel
Damn, Thank you, I found the mistake, I thought the
use Filament\Resources\Pages\CreateRecord;
use Filament\Resources\Pages\EditRecord;
use Filament\Resources\Pages\ListRecords;
Should also be adjusted to
use Filament\Moderator\Resources\Pages\CreateRecord;
use Filament\Moderator\Resources\Pages\EditRecord;
use Filament\Moderator\Resources\Pages\ListRecords;
Thank you, I thought I'd give up and start from scratch!
8 replies