We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddfb38d commit 041af25Copy full SHA for 041af25
src/HasSlug.php
@@ -5,7 +5,6 @@
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Support\Str;
7
use Spatie\Sluggable\Exceptions\InvalidOption;
8
-use Spatie\Sluggable\Tests\TestSupport\TranslatableModel;
9
10
trait HasSlug
11
{
@@ -193,7 +192,7 @@ protected function generateSubstring($slugSourceString)
193
192
194
public static function findBySlug(string $slug, array $columns = ['*'])
195
196
- $modelInstance = new static;
+ $modelInstance = new static();
197
$field = $modelInstance->getSlugOptions()->slugField;
198
199
$field = in_array(HasTranslatableSlug::class, class_uses_recursive(static::class))
0 commit comments