Support the ongoing development of Laravel.io →
posted 7 years ago
Eloquent
Last updated 2 years ago.
0

Why not save the entire thing in the database and when you returning data to AngularJS, you return everything as part of ur response.

E.g

Type of Person table
id -> Int
name -> Person 


User Table 
id -> PK
username -> String
type_of _person_id -> INT  Foreign Key  back to Type of Person table.

Using the Eloquent ORM, you can load all the data you need with their accompanying description from the database and parse them in AngularJS.

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.