Support the ongoing development of Laravel.io →

4,606 Threads

Can anybody clarify how eager loading works?

I am trying to implement my own Achievements system that assigns Titles to Users. The TItles are awa...

0 Likes
2 Replies

Eloquent float values be rounded

Hey, I have an existing database with float(10,2) fields in some tables. When I return Model::first(...

0 Likes
24 Replies

Eloquence - a must have package for eloquent

Do you use Eloquent in your apps? It's simply fun to work with, right? I think the same, but after s...

0 Likes
3 Replies
posted 10 years ago

How to write index hint with Query Builder?

One interesting question popped up in my head today. I don't actually need it, but I just wonder if...

0 Likes
1 Replies

Help with Eloquent query with relations

Hello, I am getting Unknown column 'categories.slug' What am I doing wrong in L5? Thanks [code] $pro...

0 Likes
6 Replies

php artisan won't execute because of heroku config

My Laravel 4.2 app uses PostgreSQL on Heroku. Yesterday a weird problem appear when php artisan comm...

0 Likes
1 Replies

Self referencing polymorphic relationship

So just wondering if this is possible (or even smart) before I dive in too quickly. I have three mod...

0 Likes
0 Replies

Model relations in an inheritance hierarchy

Hello guys! I am building an application and I have these models: User, Announcement, BookAnnounceme...

0 Likes
0 Replies

Is it possible to query 'where' on eager loaded relationship without a join?

Is it possibly to make a WHERE query on a eager loaded relationship? Say my users table has a name,...

0 Likes
2 Replies
Solved
posted 10 years ago

Can't Seed DB in laravel 5

I have 2 tables I want to seed, Users & Tags. I can seed Users but it gives a "[ReflectionE...

0 Likes
7 Replies
Solved
posted 10 years ago

Migrate single table

I've created new migration for new table in database. When I try to "php artisan migrate"...

0 Likes
3 Replies

Mysql CRUD generator in Laravel 4

Hello to everyone, there is any way to create the CRUD from a database such as other frameworks like...

0 Likes
3 Replies
Solved

How to use queries in Laravel?

Hello so I've been using PHP + PDO for a while now and wanted to try out Laravel, however when I did...

0 Likes
9 Replies

Mysql Joins

Hi. I am fairly new to Laravel so forgive me if this is a beginner question :-). I am currently tryi...

0 Likes
1 Replies

Eloquent: Filter by joining two "belongsToMany" relations

I have the following tables in my database: recipes id name users id name badges id name badge...

0 Likes
5 Replies

Creating a sub-domain route from a primary key

Hello, I currently have a page that lists all of the 'products' in my database by name. I am trying...

0 Likes
4 Replies

Laravel Migrate

Hello guys. I'm wondering how i can do single change in single table without affected on other table...

0 Likes
1 Replies
Solved

Created my whole database without migrations..

I'm very new to Laravel and PHP really. I'm progressing really well and I absolutely love Laravel ho...

0 Likes
4 Replies
posted 11 years ago

Exist something like mysqli_multi_query in laravel 4?

Hi, I have to make multiple updates and i want to make to run just only once. In php we have mysqli_...

0 Likes
1 Replies

Laravel 5 XAMPP Can't connect DB, I'm going to die?

Hi I still can't connect to database properly. When I type the commands below. php artisan migrate...

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.