Changeset View
Changeset View
Standalone View
Standalone View
src/app/VerificationCode.php
Show All 27 Lines | class VerificationCode extends SignupCode | ||||
* | * | ||||
* @var array | * @var array | ||||
*/ | */ | ||||
protected $casts = []; | protected $casts = []; | ||||
/** | /** | ||||
* The user to which this setting belongs. | * The user to which this setting belongs. | ||||
* | * | ||||
* @return \App\User | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||||
*/ | */ | ||||
public function user() | public function user() | ||||
{ | { | ||||
return $this->belongsTo('\App\User', 'user_id', 'id'); | return $this->belongsTo('\App\User', 'user_id', 'id'); | ||||
} | } | ||||
/** | /** | ||||
* Generate a short code (for human). | * Generate a short code (for human). | ||||
Show All 18 Lines |