status == 1 ? ' Active ' : 'Inactive'; } protected static function booted():void{ static::addGlobalScope(new ActiveScope); } protected function createdBy(): Attribute { return Attribute::make( get: fn($value) => User::find($value) ? User::find($value)->name : '', ); } protected function updatedBy(): Attribute { return Attribute::make( get: fn($value) => User::find($value) ? User::find($value)->name : '', ); } public function articles(){ return $this->hasMany(Countryarticles::class,'countries_id'); } public function institutions(){ return $this->hasMany(Institutions::class,'countries_id'); } }