Support the ongoing development of Laravel.io →

orbdev

Joined 28 Sep 2014

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0
posted 10 years ago

Getting related model based on parent model.

Hi I want to search for like which is made by a given user on a given post. I have one Post model as...

0 Likes
1 Replies
replied 10 years ago

Eloquent get count relation

Just to add to the solution provided by @jarektkaczyk in case you have morphMany relationship to mod...

0 Likes
replied 10 years ago

Repository Pattern in Laravel 5

The code which you are using public function index() { return Model::find(1); } it is suitable...

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.