Skip to content

Commit e7165d5

Browse files
committed
changes for installation
1 parent 00c27a7 commit e7165d5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
],
1111
"require": {
1212
"php": ">=7.4",
13-
"illuminate/support": "^9.0",
14-
"illuminate/database": "^9.0",
15-
"illuminate/auth": "^9.0"
13+
"laravel/framework": "^10.10"
1614
},
1715
"license": "MIT",
1816
"autoload": {
1917
"psr-4": {
20-
"Lazycode\\Permissions \\": "src/"
18+
"Lazycode\\Permissions\\": "src/"
2119
}
2220
},
2321
"authors": [
@@ -34,4 +32,4 @@
3432
"format": "php-cs-fixer fix --allow-risky=yes",
3533
"analyse": "phpstan analyse"
3634
}
37-
}
35+
}

src/database/migrations/create_permission_tables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ public function up()
1010
{
1111
Schema::create('roles', function (Blueprint $table) {
1212
$table->id();
13-
$table->string('name');
13+
$table->string('name')->unique()->index();
1414
$table->timestamps();
1515
});
1616

1717
Schema::create('permissions', function (Blueprint $table) {
1818
$table->id();
19-
$table->string('name');
19+
$table->string('name')->unique()->index();
2020
$table->timestamps();
2121
});
2222

0 commit comments

Comments
 (0)