File: /var/www/html/punjabcabs/Original_Backup/app/Console/Commands/CustomCommand.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
use App\Http\Controllers\SendPushNotification;
use Carbon\Carbon;
use Log;
class CustomCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'update:rides';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Updating the Scheduled Rides Timing';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
app(\App\Http\Controllers\UserApiController::class)->driver_detector();
app(\App\Http\Controllers\UserApiController::class)->auto_assign();
}
}