Missing Required Parameter when Creating a New Record
I have a filament resource that works everywhere except when creating a new entry. If you create and add another it will work. If you just create then I get this error message:
Missing required parameter for [Route: filament.admin2.resources.soft-credits.edit] [URI: admin2/soft-credits/{record}/edit] [Missing parameter: record].
I am thinking this might be because I am using the 'id' field to autoincrement ?
Here's what I have for my actions:
->actions([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make()
->url(function (SoftCredit $record) {
return SoftCreditResource::getUrl('edit', ['record' => $record->id]);
}),
])
Thank you for any help / direction on troubleshooting this!1 Reply
It has something to do with making the 'id' field auto increment. Not sure why but when I manually enter the value then it works..