Specify 'id' col for editpage
I have a resource, which defines a join as part of its
getEloquentQuery
. Viewing records works just fine, however the EditRecord
crashes because it tries to access coloum id
instead of foos.id
(which is neccessary because of the join). Can I change that behaviour?Solution:Jump to solution
Found it! (I always see it after submitting the question xD sorry guys)
```php
public static function getRecordRouteKeyName(): ?string
{...
1 Reply
Solution
Found it! (I always see it after submitting the question xD sorry guys)