public function setIsActiveAttribute($value)
    {
        $this->attributes['is_active'] = $value == 1 || $value === 'true' || $value === true ? true : false;
    }
public function setIsActiveAttribute($value)
    {
        $this->attributes['is_active'] = $value == 1 || $value === 'true' || $value === true ? true : false;
    }
public function setIsActiveAttribute ( $ value ) { $ this -> attributes [ 'is_active' ] = $ value == 1 || $ value === 'true' || $ value === true ? true : false ; }
Set the is_active attribute.

@param boolean $value
@return string
Set the is_active attribute .