id = Str::random(64); }); } public function user() { return $this->belongsTo(User::class); } public function isAvailable() { return $this->user !== null; } }