class User extends Model
{
public function setNameAttribute($value){
$this->attributes['name'] = str_slug($value);
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community