Support the ongoing development of Laravel.io →
Requests Database Forms
Last updated 1 year ago.
0

You probably need to do a little bit of debugging. Make sure your request gets to the desired controller action. You can do so by returning some kind of response and outputting it in the developer console.

Also, have you tested adding an a new record from somewhere else? I.e. from some route closure.

Last updated 7 years ago.
0

Tried debugging,just now,it does not reach the controller at all,i returned a view right after starting the function,it redirected me to the \ page (just like it did for the numerous previous times i tried to submit)

Well,i tried hard coding it,it works fine,is that enough?

Could it be the CSRF token ?

Last updated 7 years ago.
0

I suggest installing Clockwork. here

Let me know if that helped figure out your problem. :)

If it is the token, you will get a clear message in clockwork. Also, i do not see you included any tokens in your form. (at least not in the sample you provided)

Last updated 7 years ago.
0

After verification,the csrf is there in the headers so,can't be it.

Plus,Actually this is the request header General Request URL:http://laravel.dev:8000/createEvent Request Method:POST Status Code:302 Found Remote Address:192.168.10.10:8000

Response headers did actually have a location of http://laravel.dev:8000/login

And after looking up 302 error,it basically meant that the createEvent redirected towards /login ,and am authenticated,i even logged out then relogged in and nothing happens,any other suggestions ?

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

MokhFn mokhfn Joined 27 Jul 2016

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.