Support the ongoing development of Laravel.io →

GTCrais

Joined 12 Apr 2014

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

Advanced queries in a Laravelesque way

Is there a 'Laravel way' of writing something like this? $products = Product::select(DB::raw( 'mw_pr...

0 Likes
3 Replies
Solved
replied 10 years ago

One-To-Many Relationship On The Same Model [Laravel 5]

Category::whereNotNull('parent_id')->get(); That should do it. As for the other part of the ques...

0 Likes
replied 10 years ago
0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.