*/ protected function casts(): array { return [ 'deleted_at' => 'datetime', ]; } public function reward() { return $this->belongsTo(Reward::class, 'reward_id'); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function voucher() { return $this->belongsTo(Voucher::class, 'voucher_id'); } }