R
R
RMate2019-02-03 19:25:13
Laravel
RMate, 2019-02-03 19:25:13

How to do with across multiple models?

Hello!
I want to select records through several intermediate tables... the structure is something like this:
organization->department->group->employee->task.
Can I use Eloquent to sample all tasks in an organization? The biggest question is how to do it in one request? Write with pens? it seems like there should be a more interesting method)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-02-03
@RMate

Start reading the documentation , there's a lot of interesting stuff in there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question