Take the example Videos->comments Videos::with([comments => function ($q) { $q->take(1)...
doesn't work for me either
what's wrong is you're trying to do an SQL injection into your own query. Try doing it this way: ret...
The Laravel portal for problem solving, knowledge sharing and community building.
The community