Files
vedant-chavan/app/Console/Commands/UpdateTableColumnCommand.php
vedant-chavan eff0228447 first commit
2024-06-12 20:29:05 +05:30

36 lines
676 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
class UpdateTableColumnCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'update:column';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Update isactive column value by 1 daily 9AM';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
DB::table('mood_o_meter')->update(['is_active' => '1']);
$this->info('Table column updated successfully.');
}
}