If You Have any Question ! Click on the Bellow Link and in Comment section , Ask your Question ?
Question Link: https://nasirsoft.com/single_video/3
This is the Simple Form Submission Project , that is design for beginners to learn Laravel .
After Watching this Tutorial completely You Will able to learn
1 - MVC Architecture
2 - Laravel Installation
3 - Laravel HTML Forms
4 - Forms Validations
5 - Laravel Requests
6 - Laravel Controller
7 - Laravel Views
8 - Laravel Models
9 - Flash Messages in Laravel
10 - Insert Data to MySQL Table
11 - Creation of Database Connections in Laravel
12 - Resolving Errors in Projects
and many more......
Please Subscribe my Youtube Channel as well for watching more informative videos.
******** Model Code Start **********
namespace App;
use Illuminate\Database\Eloquent\Model;
class FormInsertionModel extends Model
{
protected $table = 'form_data_table';
protected $primaryKey = 'id';
protected $connection = 'nasir';
public $timestamps = true;
protected $fillable = [
'name' , 'email' , 'phone' , 'message'
];
}
*************Model Code End ***********************
*********** Model Documentation Link ***************
https://laravel.com/docs/7.x/eloquent
**********************************************************
************** Create Table ***********************
CREATE TABLE `form_data_table` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(20) DEFAULT NULL,
`email` varchar(20) DEFAULT NULL,
`phone` varchar(20) DEFAULT NULL,
`message` text DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
***********************************************************
********Flash Message Link **********************
https://www.itsolutionstuff.com/post/...
--------------------------------------Other Useful Links--------------------------------------------------------
Facebook: / nasirsoft93
Website : https://nasirsoft.com/
LinkedIn : / muhammad-nasir-6b82379b