Answers for "laravel migration update column with data of another column"

PHP
1

how set field after another field in migration in laravel

Schema::table('users', function($table)
{
    $table->string('phone_nr')->after('id');
});
Posted by: Guest on August-04-2021
0

how to update a table based on three columns laravel

$name=Input::get('name');
        DB::table('attendence')
            ->where('name',$name)
            ->update([
                'checkedout' =>  $this->data->checkedout,
                'type'=> $this->data->type,
            ]);
        return redirect('attendence')->with('Thank You!');
Posted by: Guest on February-06-2022

Code answers related to "laravel migration update column with data of another column"

Browse Popular Code Answers by Language