From 041af2533fe2206715e9a4a9cad2cab6cb796655 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Mon, 29 May 2023 09:42:35 +0000 Subject: [PATCH] Fix styling --- src/HasSlug.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/HasSlug.php b/src/HasSlug.php index 8041d3c..137525b 100644 --- a/src/HasSlug.php +++ b/src/HasSlug.php @@ -5,7 +5,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use Spatie\Sluggable\Exceptions\InvalidOption; -use Spatie\Sluggable\Tests\TestSupport\TranslatableModel; trait HasSlug { @@ -193,7 +192,7 @@ protected function generateSubstring($slugSourceString) public static function findBySlug(string $slug, array $columns = ['*']) { - $modelInstance = new static; + $modelInstance = new static(); $field = $modelInstance->getSlugOptions()->slugField; $field = in_array(HasTranslatableSlug::class, class_uses_recursive(static::class))