/** * Execute the command. * * @return void */ public function handle() { $phone = VerifiedPhoneNumber::where('verify_token', $this->token)->first(); if ($phone && Carbon::now() <= $phone->expires_at) { $phone->verified_at = Carbon::now(); $phone->verified = true; $phone->save(); return true; } return false; }