In my app there is a division into workspace
Each user is available only the one workspace to which it is bound. Workspace itself is stored in the user.
And when I need to, for example, a list of projects, and in General, when speaking to each entity, I need to choose initially on the workspace.
->where('t.workspace_id = :id')
I read here sounded a question and did not find the answer for yourself. From Laravel is cool stuff - globalScope, which I can use to automate the sample. How about symfony?