Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #110 from jungessolutions/unique-permission-slugs
Browse files Browse the repository at this point in the history
Unique permission slugs
  • Loading branch information
Mateus Junges committed Jul 12, 2019
2 parents 513ef3a + 38c27f4 commit fb79654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

All notable changes to `mateusjunges/laravel-acl` will be documented in this file.

## 1.8.1
- Add `->unique()` for permission slugs (fix #109)

## 1.8.0
- Check for permissions using wildcard (fix [#77](https://github.com/jungessolutions/laravel-acl/issues/77))
Expand Down
Expand Up @@ -17,7 +17,7 @@ public function up()
Schema::create($permissionsTable, function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->unique()->nullable(false);
$table->string('slug')->nullable(false);
$table->string('slug')->unique()->nullable(false);
$table->text('description')->nullable();
$table->softDeletes();
$table->timestamps();
Expand Down

0 comments on commit fb79654

Please sign in to comment.