Let's say a school has many teachers, and each teacher has many pupils. Is there an easy way of retu...
Hi, In my model I have users. Each user may have some roles. Each role have some allowed activities....
Hi, I'd need to set a default value for any Eloquent model attribute. So, for example if I try to ge...
have used pagination in laravel and that time the query is very simple. So I have manage to work on...
With the help of some nice folks over on Reddit I was able to get most of my controller functionalit...
In the User model, I've created a property called groupMembership and a method called setGroupMember...
Hello guys, I got this big question on this scenario: I'm building a easy post and comment system, b...
Retrieving a datetime field which is YYYY-MM-DD and I need to display it as dd/mm/yy. So I am using...
Some background: I've been working with L4 for about 6 months doing things the "pretty" wa...
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...
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