Support the ongoing development of Laravel.io →
jsvensson

jsvensson

Joined 13 Mar 2014

Statistics

Threads 3
Replies 9
Solutions 0
Articles 0

Using model scopes gives Method not found

I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...

0 Likes
4 Replies
Solved

Eloquent not inserting null values on pivot table

I'm having problems where I want empty strings or a zero to be stored as a NULL in the database. Her...

0 Likes
3 Replies
Solved

Rearranging JSON output

I have this basic model of a Contest with several Events, where each Player can have one result per...

0 Likes
13 Replies
Solved
replied 11 years ago

Rearranging JSON output

Oh, and I route it like this: Route::group(['prefix' => 'api/v0'], function() { Route::reso...

0 Likes
replied 11 years ago

Rearranging JSON output

I thought it looked ugly to have both HTML and JSON output in the same controller, so I split it up...

0 Likes
replied 11 years ago

Rearranging JSON output

Messing around with Fractal, and I got the basics to work. Just one further question - where's a goo...

0 Likes
replied 11 years ago

Rearranging JSON output

That looks really interesting. Thanks, I'll give that a shot.

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.