Support the ongoing development of →
posted 7 years ago
Last updated 2 years ago.

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


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.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.