mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
14 lines
No EOL
222 B
PHP
14 lines
No EOL
222 B
PHP
<?php
|
|
|
|
namespace App\Traits;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
trait SlugTrait
|
|
{
|
|
public function setTitleAttribute($value)
|
|
{
|
|
$this->slug = Str::slug($value);
|
|
$this->attributes['title'] = $value;
|
|
}
|
|
} |