public function setDescriptionAttribute($value)
    {
        if (strlen($value) > 255) {
            $value = substr($value, 0, 255);
        }

        $this->attributes['description'] = $value;
    }
public function setDescriptionAttribute($value)
    {
        if (strlen($value) > 255) {
            $value = substr($value, 0, 255);
        }

        $this->attributes['description'] = $value;
    }
public function setDescriptionAttribute ( $ value ) { if ( strlen ( $ value ) > 255 ) { $ value = substr ( $ value , 0 , 255 ) ; } $ this -> attributes [ 'description' ] = $ value ; }
Making sure description is no longer than 255 characters.

@param $value
Making sure description is no longer than 255 characters .