Skip to content

Commit

Permalink
fix: sluggable
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlatinum committed Feb 14, 2024
1 parent 3689a11 commit 9822c4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ composer require teners/laravel-extras

Publish the package configuration file
```bash
php artisan vendor:publish --provider="Teners\LaravelExtras\LaravelExtrasServiceProvider" --tag="config"
php artisan vendor:publish --provider="Teners\LaravelExtras\LaravelExtrasServiceProvider" --tag="extras-config"
```
And the migrations file if you would be using the files model
```bash
php artisan vendor:publish --provider="Teners\LaravelExtras\LaravelExtrasServiceProvider" --tag="extras-migrations"
```

## Available Extras
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Sluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function generateSlug()
{
$sourceColumn = $this->getSourceColumn();

$slug = Str::slug($sourceColumn);
$slug = Str::slug($this->$sourceColumn);

$count = 0;
$originalSlug = $slug;
Expand Down

0 comments on commit 9822c4f

Please sign in to comment.