mardi 31 mai 2022

Laravel Eloquent Query Building ORM

Let's assume, There Is two Table 'student' & 'state', 'student' table contain 'id', 'name', 'state_id'. and 'state' table contain 'id', 'state_name'. In 'student' table contain the corresponding State ID.

Now I want to fetch the student's details including the state name. (Note: In the student table, I contain only the state id) How can I achieve this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire