Hi guys! I have a posts table and a post may have one media. It can be a video or a gallery. This is...
Hi, I have a boolean column in table. I have also added that field in $fillable in modal class. When...
I was wondering if there is any good way to treat table data as form input data. That's probably cle...
Hi folks, I'm having problems with filtering related objects: 2 Tables: customers and bills A custom...
Hi guys! I have a posts table having these fields id content post_type media_id postable_type The...
I want change password column length 32 to 60 Why this is not work, if (Schema::hasColumn('users', '...
Hi all, I have a User model that hasMany Assessments so: class User...{ public function assessment()...
How do i make eloquent: NOT assume that my primary key is only named 'id' set the $timestamps prope...
id item_id tag_id 244 25090 28 247 25091 28 249 25091 33 250 25092 28 251 25092 33 253...
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?
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