Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed May 29, 2023
1 parent ddfb38d commit 041af25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HasSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 041af25

Please sign in to comment.