🎚️

One to Many

Two table are connected to each other in which one property in a table is a primary key in another table
  1. Make a controller
  1. make a model

hasMany

Inside model you have to define this table has a one to one relation with table_name
suppose your column table value has many values mathing to one value in another table then
notion image
notion image