I'm new to laravel. I have created a foreign key. what I am trying to do is to display the name of the agents according to the agents_id which is the foreign key. I can only display the agents_id. when I put "$rapport->agents_id->nom" it doesn't work. I have this error.
ErrorException Attempt to read property "nom" on int (View: C:\wamp64\www\SET\resources\views\rapport\index.blade.php)
please help me
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire