Laravel Form submission | Laravel 10 Tutorial #10

preview_player
Показать описание
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 :

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.

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!

mattveym
Автор

Great video! redirect()->back() can be used as in this situation.

kadirertan
Автор

it's all coming together! very fun teaching method

tmcxp
Автор

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!

Xtapodi
Автор

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

nguynthhng
Автор

Hi there. Here is my Model Class:
<?php

namespace App\Models;

use
use

class Idea extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'content',
'likes'
];
use HasFactory;
}

but I could not use the method by Idea::create()

zadulhassan
Автор

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
}
}

'request()-> get' doesn't work anymore in laravel 11

francodosha