Hi, We have a requirement in our application wherein we need to capture all instance of update opera...
DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'u...
i have this join statement : Item::join('buttons', 'items.cta_id','=','buttons.id')->where('build...
I must be missing something obvious here... I have a model called PlanType and another called Pricin...
Hi, I have set up my site so that a User can have a Role by doing: class User... public function...
How do I achieve to order my conversation by latest messages. I got this so far but it's not working...
Would you do // Model public function getReceiver() { return $this->users()->where('user_i...
Hi, I have Category model based on Baum Nested Set (https://github.com/etrepat/baum) package and Cat...
I have a similar example to that in the docs.. a comment and post scenario. I want notifications whe...
So I have this Offer model with several offers available. I also have a Pattern model that has a man...
I have a csv file with thousand of records. How can I use Eloquent model to import all data?
Hi , I am using ckeditor for textarea. It is working fine. But when we display description on fronte...
This Setter works well... public function setPoligonoAttribute($value) { $this->attributes['polig...
I got the following code and want the latest result. // Model public function getProfilePic() {...
I am in the process of writing a SPA application using angularjs for the frontend and laravel as a R...
Once again I'm pretty lost, the same place as other projects I've started xD A "closed" ap...
What is the best way to use findOrFail / find on a model to find models just belonging to an user. M...
Hello, can anyone help me with my problem. I can't seem to solve it. I want to show in blade view im...
Hi guys! I have a comments table and this table has four fields which are : id post_id type_id comm...
Hi, I've got this in my code. $list = $the_things->where( 'date_field', '>', time() ); That d...
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