Laravel Form submission | Laravel 10 Tutorial #10
Вставка
- Опубліковано 19 вер 2024
- Laravel 10 Blade tutorial
In this video, we're going to create a form submission in Laravel 10. We'll create a simple form to submit data to a server, and how to redirect users back to any route or url we want.
If you're new to Laravel and want to learn some of the basics, then this video is for you! In this video, we'll cover the basics of working with models and database records in Laravel, and help you get started with your own projects.
Playlist of Laravel 10 made easy Course :
• Laravel 10 Beginners C...
What is Laravel :
Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
en.wikipedia.o...
If you have any questions or problems please leave a comment.
Laravel Blade
Laravel crash course
Laravel Database and crud tutorial
i am new to laravel and object oriented programming and thanks to you i am able to learn important stuff while creating a project!
Glad I could help!
it's all coming together! very fun teaching method
Well Explained thx
Great video! redirect()->back() can be used as redirect()->route("dashboard") in this situation.
or use to_route() its convenient though
I love your video man!
Thanks for watching.
In the video, didn't you forget to add a name field "idea" in your textarea by any chance? In my code it coudn't work without it. Thank you!
I think this is something we fix in the upcoming videos
why didn't you use the concept "component" in your project? I have to find a another Laravel tutorial playlist to learn more about it. Sorry for my bad English, its not my mother language
Hi there. Here is my Model Class:
You can add (use App/Models/Idea;) into IdeaController
I'm following this tutorial with laravel 11 so you will encounter an error on the IdeaController and the solution is
public function store(Request $request)
{
$idea = new Idea([
"content" => $request->get('idea', ' '),
]);
$idea->save();
return redirect()->route('dashboard');
}
}
'request()-> get' doesn't work anymore in laravel 11
Really? For me it worked like the video