Support the ongoing development of Laravel.io →

4,314 Threads

multi level eloquent relations

I'm getting super confused with this small part time project I am working on. I have a Movie model,...

0 Likes
3 Replies

paginate bug

Hello, guys! Help me please, sorry for my english :) I have bug with paginate, example: $products =...

0 Likes
2 Replies

Eloquent will also assume that each table has a primary key column named id

Eloquent will also assume that each table has a primary key column named id. So I change it like thi...

0 Likes
4 Replies
Solved
0 Likes
0 Replies

Lavarel Post Array Data İnsert Db

Hİ, ******Var_dump Post array(2) { ["lang"]=> array(2) { [0]=> string(2) "en&qu...

0 Likes
5 Replies
Solved
posted 10 years ago

How to access the Model Class(like User,Post) from outside the controller

When I try to access the Model Class from a custom Class I get Class not found Exception. I also use...

0 Likes
0 Replies
posted 10 years ago

how can i fire event in pivot model

i implement custom pivot like this http://laravel.com/docs/master/eloquent#working-with-pivot-tables...

0 Likes
0 Replies

How to extend Builder to add custom where function

Hi. I'm trying to add some postgresql functionality to Eloquent. I've already made it so I can migra...

0 Likes
0 Replies

LeftJoin and Hydrated Relations

I have this models: class Users extends \Illuminate\Database\Eloquent\Model { protected $table =...

0 Likes
0 Replies

Eloquent: hydrate a native JOIN query

Hi all, i'm evaluating Eloquent ORM in a project. The DBA won't allow me to do the 1+1 select querie...

0 Likes
1 Replies

Table seeder works individually but not as the last seeder called in the DatabaseSeeder seed sequence?

I have a seeder that ended up working when I added protected $guarded = ['id'] to the model class of...

0 Likes
6 Replies

Array Undefined offset 0

I keep getting the error "Undefined offset: 0", and i don't understand why. When i debug $...

0 Likes
5 Replies
posted 10 years ago

Laravel 4 - Many to Many relationships help

I don't understand how i can use my many to many relationship. I'm using a older laravel version (4....

0 Likes
10 Replies
Solved

eager loading (don't know how to call my problem exactly)

Hi, I have three tables: resources, locations and location_supplies The resources table contains the...

0 Likes
7 Replies
Solved

Everything a Model?

I’m building a small web application that allows our department’s employees to submit forms for thin...

0 Likes
3 Replies

Laravel4 : database & eloquent, how does query are mapped to model

Hi, I looked inside what's Laravel do in eloquent, query, etc and wondering why, when a query is don...

0 Likes
2 Replies

Weird "Illegal string offset - It exists!!

So the cops have been round and told me I am doing something illegal. This is my paperwork to prove...

0 Likes
6 Replies

Extend Grammar

Hi. Is it possible to extend a schema grammar ? I would like to modify a method here : https://githu...

0 Likes
7 Replies

Overriding delete() class method is not working as expected

I have an Image model, which I want to override the delete method to erase the file from the system...

0 Likes
3 Replies
Solved

Delete old image on update?

Hey guys, Im using the Intervention image to allow users to upload their images - this part works. W...

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