Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

Insert Query in Laravel 5

by
Category:laravel
mysql laravel
Insert Query in Laravel 5

The query builder also provides an insert method for inserting records into the database table. The insert method accepts an array of column names and values.

Insert query work with ajax, form to pass the get and post method.

$responce = DB::table('hold_history')->insert(
    ['loat_no' => $hold, 
     'hold_for' => $username,
     'on_hold_by' => $id,
     'date' => $date,
     'status' => '1'
    ]
);

Insert query in Laravel 5 using Model

How to make Condition based query in Laravel 5 using model

Update Query in Laravel 5

Delete Query in Laravel 5


0 Comments


Html code work in comment box


Related Post