Laravel 5.8 Post Form Data From View to Controller Using Ajax

preview_player
Показать описание
In this laravel tutorial I have explained how can we post form data from view to controller Using ajax in Laravel 5.8. I also explained how can we validate the form.

#Laravel5.8 #Laravel

1 - Create Controller (0:25)
2 - Create Route (1:05)
3 - Include jQuery for Ajax Function (7:40)
3 - Add Server Side Validation (17:02)

This laravel tutorial video is very good for beginners where they can learn how to post form data to controller step by step.

Рекомендации по теме
Комментарии
Автор

*nice tutorial.* I am going to do one using axios and VUEjs to do the ajax instead of Jquery

CODINGISEASY
Автор

can it not be possible without ajax ?, i just want to send the data of the form to the controller, either in a form of array or anything

UmairAli
Автор

When I give data- route The POST method is not supported for this route. Supported methods: GET, HEAD.
I am using laravel 8 how can solve this

amranhossain
Автор

Hey this is pretty cool. But i need a little help with passing more data. how can i add more data or modify data in the ajax. Please help me.

technicalknowledge
Автор

How can I do that behind an authentication mechanism ? For example if I have logged to reach this form, will it change the way I request ? Probably I will have to present a cookie/token...how does it work ?

pfbrodriguez
Автор

I am glad you removed the "q", thank you.

ricsim
Автор

How can i show the value in the controller and save it to the database?

mahydulislam
Автор

Need to be little fast.. Nice work, Thanks.

shirjeelkhan
Автор

$validator = response->messages(); what this message function is doing

awaisraza
Автор

hey,
i just found this error -> The GET method is not supported for this route. Supported methods: POST.
where i am doing mistake...

himanshukanojiya
Автор

Server side validation using ajax laravel ?

MuhammadAdnan-gxrd
visit shbcf.ru