jeudi 28 janvier 2016

laravel split table in two table for one model

I have a one model car and table cars. In the table cars I have a lot of filed that are required to be there.

Is there any way to split this table by the filed so f1,f2,f3 go in table 'cars' and f6, f7, f8 in 'cars2'.

My goal is to at the end not to write two query for the two tables. Is this possible with eloquent.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1nQXRqB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire