Answer the question
In order to leave comments, you need to log in
Egg or Chicken in Laravel-Eloquent?
Hi all.
I spend the whole day planning a new project and creating database and model migrations in laravel.
The logic of tables and the verbal meaning of links in laravel does not converge in my head (maybe just tired?)
There is a good standard example: Post::Comments
Post
id
text
id
text
post_id
id
name
period_id
id
name
id
from
to
id
name
id
x
y
Answer the question
In order to leave comments, you need to log in
Time from - to = this is the period.
What for still the table with any name?
Why not in one table for example.
Why not automatically count from - to and output "name".
The problem could have been better explained. You ask about logic, but do not explain what logic should do.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question