Eloquent: Relationships - Laravel - The PHP Framework For Web ...
laravel.com › docs › 9When invoking the user method, Eloquent will attempt to find a User model that has an id which matches the user_id column on the Phone model. Eloquent determines the foreign key name by examining the name of the relationship method and suffixing the method name with _id. So, in this case, Eloquent assumes that the Phone model has a user_id column.