Support the ongoing development of Laravel.io →

4,603 Threads

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

How to use database session to persisting data (payload field)

Hi, I want to save the user data in a database session and access to these later. The app has a reme...

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

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

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

Extending MySqlGrammar and binding to IOC

I wanted to extend the MySqlGrammer to provide support for the MySql colum type 'set' while using th...

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

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

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

Join query in eloquent

so i have this join query $artikels = DB::table('artikel') ->leftJoin('kategori_artikel','artike...

0 Likes
3 Replies
Solved

Creating table relationship between two tables using pivot

Hi guys, I'm working on creating my own Project Manager, I currently have a projects, users and a pr...

0 Likes
2 Replies
Solved

<script>alert("OK");</script>

I cache the results of a query using the remember method. But how to cache all query?

0 Likes
0 Replies

laravel mysql every table derived must have an alias

This is my query simplified bellow. I have to use an alias as I am using union/sub query. (select d...

0 Likes
2 Replies
Solved

Standalone script

Hey all, I want to create a standalone script that I can call from an iOS App that will output XML....

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.

© 2024 Laravel.io - All rights reserved.