Hi all, I've this lil class that helps me in building a form for a specific case: Invoice Infos http...
Hey guys, i've been looking for example about dynamic constraints using eager loading, but many exam...
Hello guys, How can I access methods of model in relationships? class B extends Eloquent { public...
$headlines = Post::whereHas('categories', function($query) { $query->where('name', '=', 'headlin...
Hi, I'm working on application that requires managing several databases from one administration inte...
I'm writing a system around an existing database structure using Laravel 4.1. The current system is...
Hi, I've tried to figure out if this is possible, but can't figure out how if it's even possible. Le...
Hi, I have two tables that look something like this: # Author # ID Name Slug 1 Denni...
Howdy! When I try to use a whereHas within a grouped where class, I get an error. Any ideas? $activi...
##Problem I have an eloquent model "Invoice" that hasMany "InvoiceTicket" that b...
Hello everyone, I'm an absolute beginner to Laravel, and this is my first thread, so I hope I'm not...
i have set up users and roles table with a pivot table and i need to check, if logged user has admin...
Suppose you have a simple products table: id | name | category ....................... 1 | prod1 |...
Hi, I have two models : Sale.php <?php class Sale extends Eloquent { public function groups() {...
Hello, I'm trying to load an Eloquent model with a polymorphic relationship. I want to get Photos th...
Hi everyone! I'm new to laravel and I need some help with this problem. I have 2 tables posts and po...
Hi guys i'm trying to Load all Collection with Items inside Collection with Eager Load but i only wa...
I'm buidling a SaaS and have added a client_id column to each of my tables. Now in my repositories,...
Hi, I need to join one table into a query only if another condition is true. I try, using the exanpl...
The old forums either had no solution for this, OR said the issue was solved by switching to file ca...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community