Changeset View
Changeset View
Standalone View
Standalone View
src/app/SignupCode.php
<?php | <?php | ||||
namespace App; | namespace App; | ||||
use Carbon\Carbon; | use Carbon\Carbon; | ||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
/** | /** | ||||
* The eloquent definition of a SignupCode. | * The eloquent definition of a SignupCode. | ||||
* | |||||
* @property datetime $expires_at | |||||
*/ | */ | ||||
class SignupCode extends Model | class SignupCode extends Model | ||||
{ | { | ||||
// Note: Removed '0', 'O', '1', 'I' as problematic with some fonts | // Note: Removed '0', 'O', '1', 'I' as problematic with some fonts | ||||
public const SHORTCODE_CHARS = '23456789ABCDEFGHJKLMNPQRSTUVWXYZ'; | public const SHORTCODE_CHARS = '23456789ABCDEFGHJKLMNPQRSTUVWXYZ'; | ||||
public const SHORTCODE_LENGTH = 5; | public const SHORTCODE_LENGTH = 5; | ||||
public const CODE_LENGTH = 32; | public const CODE_LENGTH = 32; | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |