Support the ongoing development of Laravel.io →

4,314 Threads

Laravel 5, nested model with parent-child relationship

Hello everyone, I face the current problem: I'd like to query A parent article with all it's childre...

0 Likes
1 Replies

IDs in Laravel Eloquent

Hi folks! I have column "category" in "posts" table, each post can have multiple...

0 Likes
1 Replies
Solved

Which is the correct way?

Hello, I have a problem I want to discuss here. At first I thought an answer given in chat might be...

0 Likes
1 Replies

Suggestions for based based rows.

Hello, I want to have rows which are based on a user, so for example if I do a find I would see MY r...

0 Likes
0 Replies
posted 10 years ago

Edit without form model binding

I have a bit of unique situation that I feel like I should be seeing, but I'm not. I have a table t...

0 Likes
5 Replies
Solved

Dear God, I think Laravel 5 was a mistake.

I started to use Laravel in Laravel 3, and built a production app with Laravel 4. I am facing severa...

0 Likes
17 Replies
Solved

Multiple Connection in Laravel

Hi all, I building the system using multiple db sample structure. But i have problem. I try ORM Rela...

0 Likes
0 Replies

Option to "Add New" in select options?

This is probably a dumb question, but I have a form where the user is to select from different dropd...

0 Likes
0 Replies
posted 10 years ago

Model "deleting" event being ignored

I have the following model. <?php namespace App; use Illuminate\Database\Eloquent\Model; class...

0 Likes
0 Replies

Join table multiple connection

how do a query to do join between table-contact db1 with table-client db2. db1 db2...

0 Likes
5 Replies

Bulk uploading images to Amazon s3 in L5

I have a simple app I am building that allows users to create post that allow up to 4 images attache...

0 Likes
0 Replies
posted 10 years ago

My collection doesn't works!

I create a collection from result of a external webservice for calculate ships: $tipos = ['2' =>...

0 Likes
8 Replies

Eloquant And "with" function relationship

Welcome, I have a problem, I user the function "with" for relating between models in eloqu...

0 Likes
3 Replies

Use of Model inside Seeder

I need to seed a database and use a function (called ad the end of the code) defined in User model....

0 Likes
3 Replies
Solved

[SOLVED] User::create makes blank entries in my users table. id and time stamps are working, everything else blank, No errors

I have tried to find something one this but I have no idea. I could just fill the data a different w...

0 Likes
1 Replies
posted 10 years ago

Trouble Getting Relationship Data

Im trying to get the ticket status title via Eloquent Relationship, but it keeps returning the ticke...

0 Likes
3 Replies

eloquent/model.php is throwing an error when seeding

Trying to run a db:seed throws me this error. PHP Fatal error: Class 'Database' not found in /var/w...

0 Likes
1 Replies

Passing multiple variables in to a controller view

Hi, I am trying to get the url e.g localhost/cat/restaurants/this-is-a-test but it throws an error w...

0 Likes
1 Replies
Solved
posted 10 years ago

[L5] Count query running multiple times

I have a query that counts rows in a table that equal 5. For some reason it is running multiple time...

0 Likes
0 Replies

Forum threads order by reply date

Hello, I'm trying to list threads in a forum/category based on the last reply to the thread. I've th...

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