Laravel 5.2, insert form data into database, database, data into database,

How to Insert Form Data Into Database In Laravel 5.2 Using Model

Technology

How to insert form data into database using laravel 5.2 using model,eloquent in xampp server with errors also.




In this video i will show you Laravel 5.2 Framework how to insert form data coming from a form into xampp server or local server. First create database with purals name, then create model with singular name like database is makers and model name should be like maker only. After create model create controller and give connection to routes. and namespace model to controller.








Namespace for a model in controller is maker

$user = new maker;
$user->name=Input::get(“name”);
$user->email=Input::get(“email”);
$user->save();
Input::get is geting data from a form;
$user->name is inserting data into a database.

This is away how we insert form data into database by laravel framework.