|DeviceToken whereAppType($value) * @method static \Illuminate\Database\Eloquent\Builder|DeviceToken whereUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|DeviceToken whereToken($value) * @method static \Illuminate\Database\Eloquent\Builder|DeviceToken whereActive($value) * @mixin \Eloquent */ class DeviceToken extends Model { protected $guarded = ['id']; protected $casts = [ 'active' => 'boolean', 'app_type' => PushNotificationTargetEnum::class, ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } }