Answers for "ajax accept single click by id on all loop laravel"

PHP
1

how to insert multiple data at a time with create method in laravel

$data = [
    ['user_id'=>'Coder 1', 'subject_id'=> 4096],
    ['user_id'=>'Coder 2', 'subject_id'=> 2048],
    //...
];

Model::insert($data); // Eloquent approach
DB::table('table')->insert($data); // Query Builder approach
Posted by: Guest on April-30-2020
0

laravel get all inputs from request

$input = $request->all();
Posted by: Guest on March-30-2020

Browse Popular Code Answers by Language