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.
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 ?
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)
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 ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community