Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

leftJoin not working with Category Model using NestableTrait #73

Open
cse111 opened this issue Sep 15, 2019 · 0 comments
Open

leftJoin not working with Category Model using NestableTrait #73

cse111 opened this issue Sep 15, 2019 · 0 comments

Comments

@cse111
Copy link

cse111 commented Sep 15, 2019

I have the following code in Category Model:

<?php

use Nestable\NestableTrait;

class Category extends \Eloquent {

    use NestableTrait;

    protected $parent = 'parent_id';

}

And

Category::attr(['name' => 'categories'])
    ->selected(2)
    ->renderAsDropdown();

The above code works fine. But in some other function in Controller when I use leftJoin function with Category Model, leftJoin is not working. I have something like below:

Category: leftjoin('expense','category.id','expense.category_id')->get();

in above eloquent leftjoin is not rendering in response.
Any help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant