Hello and good day to everyone The issue is tricky (for me). I passed the parameter value from the c...
I have a Post model with the following function: public function tags() { return $this->belongs...
Dear Laravel Users, I just got to know a few days ago about Laravel (=> I'm a "stupid starte...
Hello community, I try to get data via one model from two different tables, so I want to change the...
The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...
How can I try to using cache for all of Eloquent query. Example: $users = User::remember(10)->get...
Hello everyone! I have a little problem to register a user. Here is the function that processes the...
class Batch extends Eloquent { public function coupons() { return $this->hasMany('Cou...
In my Car class I have public function user() { return $this->belongsTo('User'); } public fu...
Hello All, So I have some weirdness happening. I'm trying to do a search on a track database that I...
I need to execute a query with group by. But the group by is not for a field. I need to group by wit...
I have 4 tables TableA hasMany TableC TableB hasMany TableC TableC hasMany TableD I want to connect...
Hi ! I read that L3 didn't support composite primary key, is it the same for L4.1 ? In my case it's...
Hi, Given this simple database setup: posts - id tags - id post_tag - id - post_id - tag_id ......
In relationship from the questions I have ask previously, Question 1: Inserting selected fields from...
I would like to have the following models: Employee, Agent, Client. Since half of all the fields and...
good morning, someone who can help me, I need to create a route between father son model to model, l...
Hi there, This was a different thread, but incorrectly titled. Anyway, here's the problem: On our d...
Hi, I am new to laravel and this is pretty basic problem (I think) but for some reason I can't get m...
Hi, is there any way to add custom methods to eloquent models? e.g.: class User extends Eloquent {...
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