Support the ongoing development of Laravel.io →
jaketoolson

jaketoolson

Joined 12 Mar 2014

Statistics

Threads 0
Replies 18
Solutions 1
Articles 0

jaketoolson has not posted any threads yet

replied 11 years ago

Eloquent not returning all results from query?

Try wrapping your SQL in DB::Raw(): $asins = DB::select(DB::raw('SELECT `AmazonASIN`.`sku` , `Amazo...

0 Likes
replied 11 years ago

2 queries to 1

Are you wanting to write a query that gets all images from a table and the first image as well? Woul...

0 Likes
replied 11 years ago

eloquent has with where on pivot?

You'd have this problem writing raw SQL - you have to specify from which table the 'active' column i...

0 Likes
Solved
replied 11 years ago

How to set model of hasOne child relation in code.

$p = Parent::find(1); $child = new Child([ 'key' => 'value', ]); $p->child()->save($child...

0 Likes
replied 11 years ago

How to have models within a package

You have no namespaces setup in your Role.php Per your PSR-0 structure, and as you said you have a &...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.