get data from multiple relations in laravel eloquent

QuestionsCategory: Laravelget data from multiple relations in laravel eloquent
VR Soft Coder Staff asked 6 months ago

1 Answers
VR Soft Coder Staff answered 6 months ago

Pass as an array in your repository function like below:-

    public function with($relations=array())
    {
        return $this->model->with($relations);
    }

Your Answer

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top