so an employee has one address? then your model is correct.
if employee has multiple addresses then remove the address id from employee table and add an employee id to the address table, then simply define has many relationship on the employee table and a has one relationship on the address table.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community