Skip to content

Commit

Permalink
prepare for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 24, 2016
1 parent 1b86365 commit 6d80bf3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All Notable changes to `laravel-sluggable` will be documented in this file

## 1.1.0 - 2016-01-24

## 1.0.2 - 2016-01-12

- Fix bug when creating slugs from null values
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getSlugOptions() : SlugOptions
}
```

You can also put a maximum size limit on the created slug.
You can also put a maximum size limit on the created slug:

```php
public function getSlugOptions() : SlugOptions
Expand All @@ -100,6 +100,15 @@ public function getSlugOptions() : SlugOptions

The slug may be slightly longer than the value specified, due to the suffix which is added to make it unique.

You can also override the generated slug just by setting it to another value then the generated slug.
```php
$model = EloquentModel:create(['name' => 'my name']); //url is now "my-name";
$model->url = 'my-custom-url';
$model-save();

$model->name = 'changed name';
$model->save(); //url stays "my name"
```

## Change log

Expand Down

0 comments on commit 6d80bf3

Please sign in to comment.