I have 2 tables links and likes (with relation: links.id = likes.link_id) and I need to build query...
I have a view page with 3 paginations. Next link of one effect the other two paginates. When next of...
Hi, As you know, there is a limitation in constraints' name definition as it should not exceed 30 ch...
Hi Guys, My setter is not working: public function setStartDateAttribute($date) { if ($date) { $this...
Hey guys, im running the following Query: $user = User::where('active', '=', '1')->get(); Then in...
I can get the records created in the current month, I use postgresql SELECT * FROM quakes WHERE extr...
Hello I am trying to return data with multiple table at the same time using repository function ulti...
class User extends Eloquent {} I can't find where the "Eloquent.php" class file in the &qu...
I had the following models. <?php use LaravelBook\Ardent\Ardent; class Teacher extends Ardent{...
Hello friends, you can create a dynamic sql query: there are 3 input and the user can enter a value...
I am trying to add two new keys to a previously iterated Collection. I am using the each() method bu...
hi, i need to do this query: SELECT avg(vote) FROM (SELECT max(timestamp), vote FROM votes_table WHE...
I'm trying to figure out this tough relationship with the Eloquent relationships. Lets say through o...
Hello i facing an issue with the inverse relation of a one-to-many relation. My two models are the f...
This code returns true when run and I don't get it. What am I doing wrong. Thanks guys! profile = DB...
I'm creating a membership site. Let's just say that, user will have photos. when user logged in, thi...
I have a query with eager loaded results that need to be sorted. I've used similar code in other are...
Hi, I'm actually creating an online shop, but I've got a strange error. So that's how the error page...
For some reason when I do the following it only lists this. Any ideas as to what I am doing wrong....
What is the correct way to find a related object based on a where clause with Eloquent ORM? For exam...
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