Support the ongoing development of Laravel.io →

4,311 Threads

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 9 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 9 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 9 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

Paginate count incorrect

I'm using Laravel 4's pagination (which I have used successfully in the past) and have hit an odd er...

0 Likes
7 Replies
posted 9 years ago

Eloquent relationships & seeding

Here is part of my Listing model file: public function model() { return $this->belongsTo('Model'...

0 Likes
4 Replies

Models for tables with multiple columns for primary key

I know to override the standard "id" column for primary key in an Eloquent model that you...

0 Likes
4 Replies

How to fetch data by using Eloquent relatinoship

Hi, I'm new to laravel. Currently trying to use eloquent in one of my application. I've 3 database t...

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

© 2024 Laravel.io - All rights reserved.