Support the ongoing development of Laravel.io →

4,608 Threads

Laravel query not binding value correctly

My query is returning the wrong results because the parameter (minutes) is not being binded to the q...

0 Likes
0 Replies

How do I directly show Category Name instead of Category ID that is on another table?

Here is pictorial Question with 3 screenshots: http://imgur.com/a/94vrg

0 Likes
2 Replies

How set this pure mysql code in laravel

How set this pure mysql code in laravel SELECT * FROM users WHERE YEAR(created_date) = 2017 and MONT...

0 Likes
1 Replies

Problem with connecting to Database

I'm new to Laravel and I'm trying to fix next issue for 2 days. I want to create database and migrat...

0 Likes
1 Replies

Can I develop HR/Payroll System in Laravel

Can I develop payroll in system by laravel? How much you suggest Laravel for this task? Welcome to y...

0 Likes
3 Replies

QueryException in Connection.php line 647:

I'm trying to save checkboxes. I should be able to select one or mutliple. This is the error I'm get...

0 Likes
0 Replies
posted 8 years ago

Illegal mix of collations

Laravel gives me an invalid mix of collations which is wrong. http://take.ms/dpY0U I have tried to c...

0 Likes
0 Replies

DB select get only first row

I have a row query \DB::select("SELECT * FROM table_name WHERE id=$id"); the result shoul...

0 Likes
5 Replies
Solved

Artisan Migrate Not Working

I'm having problems with my migration code, This is the error I'm recieving: PHP Parse error: synta...

0 Likes
4 Replies
Solved

Trying to get property of non-object from eloquent Relationship

I have used a relationship that returns data but when i use it it throws error "Trying to get p...

0 Likes
1 Replies
Solved

The Eloquent subquery is not executed correctly

Hi, frinds Can U help me in my case with eloquent subquery? ) I have the code in my model: return Ne...

0 Likes
1 Replies

get data from Pagination

i have $users = User::paginate(10); how do i get the data when i pass it to my blade template. e.g:...

0 Likes
7 Replies

Reference/Guide of Methods of Model Class

Guys how do I get complete Reference of Methods of Model Class?? like where(), Get(), first(), etc a...

0 Likes
2 Replies
Solved

Database Error Migrate

after php artisan migrate, theres an error I got below: [Illuminate\Database\QueryException] SQLSTAT...

0 Likes
4 Replies
Solved

Eloquent Groupby with Rollup

How do I use the mysql rollup feature with laravel eloquent? I did try a few but not able to get the...

0 Likes
1 Replies
Solved

Why is the hidden field in the Laravel Model not working when set dynamically?

I have described in detail here. https://stackoverflow.com/questions/42827731/why-is-the-hidden-fiel...

0 Likes
0 Replies

Eloquent - relationship pivot table attributes

Hey, I am trying to create simple shopping cart / order module and I've decided to connect orders an...

0 Likes
2 Replies
Solved

Class 'Eloquent' not found

I am a beginner to laravel. I have just downloaded the latest version of laravel and deployed on my...

0 Likes
18 Replies

Several Eager Loading with constraints

I have this nice query: $posts = Post::with('user','comments','comments.user', 'tags') ->take(10)...

0 Likes
4 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

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.

© 2025 Laravel.io - All rights reserved.