Support the ongoing development of Laravel.io →
Configuration Database Eloquent
Last updated 2 years ago.
0
Solution

you most likely have something like

try_files $uri $uri/ /index.php?q=$uri&$args;

in your NGINX config and my guess is that HipHop needs this

you can write

$model->column = Input::get('column'); 

instead of

Model::create(Input::all())

or write a Model Observer that unsets the 'q' in the saving() method

Last updated 2 years ago.
0

Something I remember is like

// Might be totally wrong.
Model::create(Input::all(Input::except('q')))
Last updated 2 years ago.
0

zenry said:

you most likely have something like

try_files $uri $uri/ /index.php?q=$uri&$args;

in your NGINX config and my guess is that HipHop needs this

you can write

$model->column = Input::get('column');

instead of

Model::create(Input::all())

or write a Model Observer that unsets the 'q' in the saving() method

It was actually a dumb fault of mine, but this comment helped me find it.

I was reading in the input array individually, but I had also, by the insert in the controller, used new Model(\Input::All());

Deleting this fixed everything.

Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

garethwi garethwi Joined 25 Feb 2014

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.