Browse Source

Use Str class instead of helper function

Jordan Hall 5 years ago
parent
commit
e68ff0c66a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      config/database.php

+ 3 - 1
config/database.php

@@ -1,5 +1,7 @@
 <?php
 
+use Illuminate\Support\Str;
+
 return [
 
     /*
@@ -117,7 +119,7 @@ return [
 
         'options' => [
             'cluster' => env('REDIS_CLUSTER', 'predis'),
-            'prefix' => str_slug(env('APP_NAME', 'laravel'), '_').'_database',
+            'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database',
         ],
 
         'default' => [