for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace jeremykenedy\LaravelRoles\Traits;
use Illuminate\Support\Str;
trait Slugable
{
/**
* Set slug attribute.
*
* @param string $value
* @return void
*/
public function setSlugAttribute($value)
$this->attributes['slug'] = Str::slug($value, config('roles.separator'));
attributes
}