I'm using laravel Query Builder to join two table from mysql db When i use raw query in the shell
SELECT * from parent_accounts
LEFT JOIN child_accounts on parent_accounts.account_id=child_accounts.parent_id
Result
When using laravel Query Builderas follows
$accounts=\DB::table('parent_accounts as p')->join('child_accounts as c','p.account_id','=','c.parent_id')->select('p.name AS parent','c.name as name','c.account_id as account_id','c.parent_id as parent_id')->get();
i never get the 4th row, isn't that result if i used left join with child_accounts first ?
