laravel seeder with update code example
Example 1: eloquent run seeder
php artisan db:seed --class=UserSeeder
Example 2: laravel seeder update
DB::table('translations')->where('field', 'page_desc')->update(['field' => 'meta_desc']);
php artisan db:seed --class=UserSeeder
DB::table('translations')->where('field', 'page_desc')->update(['field' => 'meta_desc']);