'payment', 'discount' => 'discount', ]; protected $casts = [ 'dollar' => 'bool', 'active' => 'bool', 'contact_emails' => 'array' ]; protected $fillable = [ 'name', 'dollar', 'type', 'contact_emails', 'active' ]; public function service_provider_entries() { return $this->hasMany(ServiceProviderEntry::class); } public function service_provider_services() { return $this->hasMany(ServiceProviderService::class, 'service_provider_id', 'id')->orderBy('pos', 'DESC'); } }