Skip to content
Advertisement

How can we use when clause for multiple tables in laravel eloquent query?

I’m using condition based queries but i have a problem how can i use (when) with other table/model because i have to put condition based on the other table column (branch_id).

branch_id comes from steps table.

JavaScript

Advertisement

Answer

You can make it like

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement