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; | ||||
use Illuminate\Database\Eloquent\SoftDeletes; | |||||
/** | /** | ||||
* The eloquent definition of a SignupCode. | * The eloquent definition of a SignupCode. | ||||
* | * | ||||
mollekopf: Shouldn't the documentation include local_part, domain_part even if extracted via observer from… | |||||
* @property string $code | * @property string $code | ||||
* @property array $data | * @property array $data | ||||
* @property \Carbon\Carbon $expires_at | * @property \Carbon\Carbon $expires_at | ||||
* @property string $short_code | * @property string $short_code | ||||
*/ | */ | ||||
class SignupCode extends Model | class SignupCode extends Model | ||||
{ | { | ||||
use SoftDeletes; | |||||
public const SHORTCODE_LENGTH = 5; | public const SHORTCODE_LENGTH = 5; | ||||
public const CODE_LENGTH = 32; | public const CODE_LENGTH = 32; | ||||
// Code expires after so many hours | // Code expires after so many hours | ||||
public const CODE_EXP_HOURS = 24; | public const CODE_EXP_HOURS = 24; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |
Shouldn't the documentation include local_part, domain_part even if extracted via observer from email?