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?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2iet5pX
via IFTTT

Aucun commentaire:

Enregistrer un commentaire