Creating new record produces error

i created a resource from a pivot model in my filament admin panel.

so my model definition is like this:
class UserSongPlayHistory extends Pivot

when i create a new record, after submitting the form, i get:
Missing required parameter for [Route: filament.admin.resources.user-song-play-histories.edit] [URI: admin/user-song-play-histories/{record}/edit] [Missing parameter: record].

if my model definition is like this:
class UserSongPlayHistory extends Model

i get no error

but the model represents a pivot table, what should i do? why this happens?

is the problem that ive created a resource from a pivot model, is this expected?
Was this page helpful?