RecoveryToken.php 683 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Models;
  3. use Carbon\CarbonImmutable;
  4. use Illuminate\Database\Eloquent\Relations\BelongsTo;
  5. /**
  6. * @property int $id
  7. * @property int $user_id
  8. * @property string $token
  9. * @property CarbonImmutable $created_at
  10. * @property User $user
  11. */
  12. class RecoveryToken extends Model
  13. {
  14. /**
  15. * There are no updates to this model, only inserts and deletes.
  16. */
  17. public const UPDATED_AT = null;
  18. public $timestamps = true;
  19. protected bool $immutableDates = true;
  20. public static array $validationRules = [
  21. 'token' => 'required|string',
  22. ];
  23. public function user(): BelongsTo
  24. {
  25. return $this->belongsTo(User::class);
  26. }
  27. }