how can i make connection betwwen two models #419
-
how can i make connection between two models ihave table name employe and amployee attendance i want to make relation between this two table by connecting ists id |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @KapilBagdi have a look at https://laravel.com/docs/10.x/eloquent-relationships#main-content to learn how to properly setup your relationship in your models. After that you can use the Backpack fields to handle those relations in the form interface. You can also check our demo repository https://github.com/Laravel-Backpack/demo, we have pretty much examples of all relationships there. Cheers |
Beta Was this translation helpful? Give feedback.
Hey @KapilBagdi have a look at https://laravel.com/docs/10.x/eloquent-relationships#main-content to learn how to properly setup your relationship in your models.
After that you can use the Backpack fields to handle those relations in the form interface.
You can also check our demo repository https://github.com/Laravel-Backpack/demo, we have pretty much examples of all relationships there.
Cheers