Tuim
Call to a member function getForeignKeyName() on null
If you stick to the conventions of model classnames, relationship names and the proper column names it should work out without too much hassle. Read up on the documentation here > https://laravel.com/docs/11.x/eloquent-relationships#defining-relationships
7 replies