'object', 'sms_gateways' => 'object', ]; protected static function booted() { static::creating(function ($smsLog) { $smsLog->uid = Str::uuid(); }); } public function scopeActive($query) { return $query->where('status', StatusEnum::TRUE->status()); } public function scopeInactive($query) { return $query->where('status', StatusEnum::FALSE->status()); } public function user() { return $this->belongsTo(User::class, 'user_id'); } public function scopeMail($query) { return $query->whereNotNull('mail_gateways'); } public function scopeSms($query) { return $query->whereNotNull('sms_gateways'); } }