Support the ongoing development of Laravel.io →

4,606 Threads

posted 10 years ago

Seed problem

Hello guys, When i run php artisan db:seed i get this error: $ php artisan db:seed {"error"...

0 Likes
1 Replies
posted 10 years ago

Can not add constraint foreign key

I am posting this question because I have researched Laravel docs, MySql,and the tutorial I am worki...

0 Likes
5 Replies

query on array for laravel (like phplinq)?

I want to query on array like sql on db. Have any package to do this?

0 Likes
0 Replies

Cannot add foreign key constraint

Hi ! I'm trying to add some foreign keys to my tables but unfortunately I get an error while inserti...

0 Likes
7 Replies

Mutual Relationship?

How could I go about this? I have a users table and a user_follows table. In the users model I have...

0 Likes
0 Replies

dropdown2 gets populated based on dropdown1

i have 2 tables, categories and subcategories categories is made up of id, and name subcategories is...

0 Likes
10 Replies
Solved

Data Access Layer Design Question

Hello. I am a Laravel newbie and I am trying to create a structure for my application. In the past...

0 Likes
0 Replies

hasManyThrough is really slow

I have Categories that have many Product Groups and those Product Groups have many Products. I'm usi...

0 Likes
7 Replies
Solved

Eloqent query if input is empty ( good approach? )

Hello, I'm building search for my worker table with eloqent, and for example I have two fields : $fi...

0 Likes
1 Replies
posted 10 years ago

Help with LIKE into multiple tables

Hello, sorry by my bad english i speak spanish :( i need your help me, please. I need create query f...

0 Likes
2 Replies
Solved

Fillable and guarded, when to use which

I know what each one does, fillable being a whitelist of columns/attributes that I was to explicitly...

0 Likes
3 Replies
Solved

Use our own classes

Hi. We have a web application, and its frontend is not using Laravel yet because it started some yea...

0 Likes
1 Replies

[Package] Database Schema Spy

Laravel SchemaSpy Laravel SchemaSpy is a Laravel artisan command that acts as an interface for the p...

0 Likes
0 Replies

Query Builder query using Eloquent syntax

Greetings to community! I want to get help from Eloquent masters. I have a Query Builder query: $cit...

0 Likes
3 Replies

Eager Loading - "first()" vs. dynamic properties

Hello! Am right about the following behaviour? (I am using Laravel 4.1) When having a simple one to...

quyle92 liked this thread

1 Likes
4 Replies
Solved
posted 10 years ago

binary size 16 columns ?

How to create a binary size 16 (uuid) column ? (for MySQL)

0 Likes
1 Replies

Custom Pivot Model - Doing belongsToMany uses parent model id, NOT pivot model id

I have a Product model, an Option model, and a ProductOptionPivot model. A collection of Option mode...

0 Likes
6 Replies
Solved

using setCallbacks in Chumpers DataTable

How to use ->setCallbacks in chumper's data table so I can Add a sum Row at the buttom of the tab...

0 Likes
0 Replies

Group by pagination without performance issues when there is over 15K results.

Laravel Eloquent query builder suffers grouping by a column and counting the results for the paginat...

0 Likes
3 Replies

Polymorphic Relationships and whereHas not working

Hi Guys, So firstly here is some code ... http://laravel.io/bin/Ld6Gx So I have a user model, and th...

0 Likes
3 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.