How to use Illuminate\Support\Str::slug in my Laravel 5 app?

后端 未结 6 952
孤独总比滥情好
孤独总比滥情好 2021-01-03 22:46

I\'m doing the following in the

public function boot(DispatcherContract $events)
{
    parent::boot($events);

    // set Tag slug
    Tag::saving(function(         


        
6条回答
  •  轮回少年
    2021-01-03 23:26

    you can call it by \Str::slug(); you dont have to register an alias to make it works, the Str class is not a facades, but a real static class

提交回复
热议问题