Support the ongoing development of Laravel.io →
pickupman

pickupman

Joined 20 Feb 2014

Statistics

Threads 1
Replies 52
Solutions 8
Articles 0
posted 9 years ago

L5.3 Unit Testing with FindOrFail ModelNotFoundException

I am writing a unit test for a route passing a $id and have a ModelNotFoundException being thrown. I...

0 Likes
0 Replies
replied 11 years ago

How to write this in Eloquent

I think this should work using Eager Load Contraints. $users = User::with(array('friend_user' =>...

0 Likes
replied 11 years ago

Advanced queries in a Laravelesque way

That looks good to me. Since a number of those selects are sub queries that seems to be the best sol...

0 Likes
Solved
replied 11 years ago

Query for Google Map

Any examples of what is not working? Maybe this might work: DB::table('vouchers') ->select(DB...

0 Likes
Solved
replied 11 years ago

Installation with Composer does not go to Htdocs

Windows user here too. As mentioned composer will download into the current folder you are at with t...

0 Likes
replied 11 years ago

Session issue

Ideally you should set a rule in your .htaccess to redirect users to one or the other. For best prac...

0 Likes
Solved

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.