Support the ongoing development of Laravel.io →

4,604 Threads

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 7 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
posted 7 years ago

Retrieving latest entry from recursive relationship

I am not sure if the title is phrased correctly, but I will try to explain it here. For context, her...

0 Likes
0 Replies

dynamic Form::select not being included in the post data

I have am trying to add a select box that is built from a database query to an existing form. The se...

0 Likes
0 Replies

Displaying current class in laravel

What I'm trying to do is have the current class style to be shown on the menu that the page is on. F...

0 Likes
1 Replies

Route model with relationship

hi all I'm making a blog and i have a question : for the view post page, i use this route : Route::g...

0 Likes
4 Replies
Solved

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.