jeudi 31 janvier 2019

How can i get 3 table data in index in laravel?

I have 3 tables schools, school_Details,ratings

** Schools**

  • id

  • name

  • phone

  • school

  • email

  • status

School details:

-id

  • school_id

  • image

  • status

ratings:

-id

  • school_id
  • rating_value
  • status

both rating &school details have only one row for one school_id.

Now how can i get all details from all 3 tables in index from schoolController



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire