Laravel 6 Tutorial for Beginners #19 - Post Requests

preview_player
Показать описание
Hey all, in this Laravel 6 tutorial we'll talk about POST requests and how we can handle them in Laravel.

🐱‍👤🐱‍👤 JOIN THE GANG -
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:

🐱‍💻 🐱‍💻 Course Links:

🐱‍💻 🐱‍💻 Other Related Free Courses:

🐱‍💻 🐱‍💻 The Net Ninja Community Boards:
Рекомендации по теме
Комментарии
Автор

laravel 8 users use this route;
Route::post('/pizzas', [PizzaController::class, 'store']);
instead of :

faresgeek-dz
Автор

If anyone gets the error saying only GET or HEAD is allowed for @csrf, make sure you have action="/pizzas" in your form tag. Worked for me since I missed that part.

ratulmazumder
Автор

This course is well done: super cool! Hope there'll be an advanced course also, or anyway an intermediate. Laravel is becaming very popular and the arguments are a lot. I'll go to donate right now trough paypal.

funk
Автор

I assume you are going to cover API controllers next? If not please touch on that I would love to know more

kreatur_
Автор

If you are using Laravel 8 and you get an error saying that there is just allowed GET or HEAD.

Try to move the Route::post above the Route::get

JuanityTV
Автор

Excellent tutorials, many thanks Shaun. What icon theme are you using in VS Code?

prlinsell
Автор

man for me the messages do not appear in the log

I already tried to solve it and it didn't work, do you know what it can be?(doc, stack, etc)

cedrio
Автор

Thank you for this video! Really helped out.

esoterik
Автор

If I used method "POST" it gives me back an error and it tells me that there is just allowed GET or HEAD.
If I change it and type HEAD instead of POST, then it works. Is there any difference?

roberttoify
Автор

Does anyone know why logging the 'name' is not displaying in the terminal for me?


I am using wampserver 64 and they are appearing in the server's php error log file, but just not in the terminal below in the laravel environement.

michaelpaxman
Автор

Hi Master! Is there any plan about Docker tutorial? There are no many good videos on youtube about it.

michaelyao
Автор

Shaun do u have a tutorial for creating login tutorial with php?

mohammedmudathir
Автор

hey, the post method is not working for me.
It is displaying this error message:
'The POST method is not supported for this route. Supported methods: GET, HEAD.'

Can you help me out please?

adityaskarnam
Автор

What if i use resource controller for store? how it will work

LovePromoter
Автор

Damn, I just get "Accepted" instead of actual data in terminal when I click submit. (So, no "shaun" like you).

AngamarZERO
Автор

Mine says closing accepted, closing accepted multiple times as it is endless. Redirect doesn't work on me. I did all i can

romualdomariano
Автор

Hi Shaun. When I submit the form it does not redirect to the Welcome page, hence it goes to /pizzas page.

cda
Автор

form is submitting to '/' (root directory) how controller get the field values

mohammadahmermalick
Автор

Hi there! I wonder if it's possible to post the data but without redirecting. is it possible? Because when I tried to remove the redirect line, it just jumps to an empty page.

danielmarton
Автор

how long is this series?... how many episodes left I mean?

khalilebrhaim