Changeset View
Changeset View
Standalone View
Standalone View
src/app/AuthAttempt.php
Show All 37 Lines | protected $fillable = [ | ||||
'last_seen', | 'last_seen', | ||||
]; | ]; | ||||
protected $casts = [ | protected $casts = [ | ||||
'expires_at' => 'datetime', | 'expires_at' => 'datetime', | ||||
'last_seen' => 'datetime' | 'last_seen' => 'datetime' | ||||
]; | ]; | ||||
public $incrementing = false; | |||||
protected $keyType = 'string'; | |||||
/** | /** | ||||
* Prepare a date for array / JSON serialization. | * Prepare a date for array / JSON serialization. | ||||
* | * | ||||
* Required to not omit timezone and match the format of update_at/created_at timestamps. | * Required to not omit timezone and match the format of update_at/created_at timestamps. | ||||
* | * | ||||
* @param \DateTimeInterface $date | * @param \DateTimeInterface $date | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |