Changeset View
Changeset View
Standalone View
Standalone View
src/app/VerificationCode.php
<?php | <?php | ||||
namespace App; | namespace App; | ||||
use App\SignupCode; | use App\SignupCode; | ||||
use Carbon\Carbon; | use Carbon\Carbon; | ||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
/** | /** | ||||
* The eloquent definition of a VerificationCode | * The eloquent definition of a VerificationCode | ||||
* | |||||
* @property string $mode | |||||
* @property \App\User $user | |||||
*/ | */ | ||||
class VerificationCode extends SignupCode | class VerificationCode extends SignupCode | ||||
{ | { | ||||
// Code expires after so many hours | // Code expires after so many hours | ||||
public const CODE_EXP_HOURS = 8; | public const CODE_EXP_HOURS = 8; | ||||
public const SHORTCODE_LENGTH = 8; | public const SHORTCODE_LENGTH = 8; | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |