hotwired-laravel / turbo-laravel

This package gives you a set of conventions to make the most out of Hotwire in Laravel.
https://turbo-laravel.com
MIT License
803 stars 50 forks source link

Use Model::getKey() instead of id attribute #2

Closed tortuetorche closed 3 years ago

tortuetorche commented 3 years ago

Because a primary key isn't always named id.

Reference: https://laravel.com/docs/8.x/eloquent#primary-keys

tonysm commented 3 years ago

thank you