Closed martianatwork closed 3 years ago
The ID class does not have access to the model, so it can't guess the column for the id. As the guess is to use $model->getRouteKeyName().
id
$model->getRouteKeyName()
If you need to know the column name, the public Schema::idKeyName() method can be used.
Schema::idKeyName()
The ID class does not have access to the model, so it can't guess the column for the
id
. As the guess is to use$model->getRouteKeyName()
.If you need to know the column name, the public
Schema::idKeyName()
method can be used.