Support the ongoing development of →
Input Database Eloquent
Last updated 1 year ago.

Turns out I needed to instantiate a new model...

$comment = new Comments;

$comment->name = Input::get('name');

$comment->comments = Input::get('comments');


Last updated 1 year ago.

Any particular reason for using GET? Database operations should be PUT, POST or DELETE. Also, you're not protected against CSRF.

Last updated 1 year ago.

Sign in to participate in this thread!


Your banner here too?

deeperDATA deeperdata Joined 18 May 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.