laravel can update code example
Example 1: laravel composer update
php composer.phar update
Example 2: laravel updateOrInsert
DB::table('users')
->updateOrInsert(
['email' => 'john@example.com', 'name' => 'John'],
['votes' => '2']
);