Hi, I can't Submit data with forms in laravel. I want build category form for save insert data in my database, I make CategoryController, Category model and Category View( index, create, edit). My problem is when i click on "save" button, in my address bar : http://localhost/laravel/news/public/admin/category/create?_token=XrmJ98yw4GHmYlRF4sBe1T1Dwj0YAPziNIQC9hE9&title=&desc=
i cant save and submit insert data :(
please help me
Make sure to use the POST method to submit your form, not GET.
My Model code: http://paste.ubuntu.com/10413586/
My Controller code: http://paste.ubuntu.com/10413590/
My View Code: http://paste.ubuntu.com/10413599/
Thanks for ask me..
I use Resource:: for RESTFull Controller.
Hello masoudline,
On a resourceful routing i think you should POST to /category and not /category/create you should add a config value inside you form open like this:
Form::open(array('url' => ' /category'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community