Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to create slug in laravel

public function setTitleAttribute($value)
{
    $this->attributes['title'] = $value;
    $this->attributes['slug'] = str_slug($value);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #slug #laravel
ADD COMMENT
Topic
Name
1+4 =