Answer the question
In order to leave comments, you need to log in
How to link main table to child table without laravel model?
Hello, I have tables:
spech_teches - it has special equipment - title, description, image, category_id
categories - categories of techniques, it has -title, image
and also has child tables:
categories_options - these are the types of characteristics of a certain category of equipment, it has - title, category_id
spech_teches_options - these are the characteristics of a particular technique, the types of characteristics depend on the category of the technique itself, it has - title, value
so this is how to link tables with child tables using EloquentORM)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question