You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: database/migrations/2021_09_14_172248_create_permission_tables.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ public function up(): void
16
16
$teams = config('permission.teams');
17
17
18
18
if (empty($tableNames)) {
19
-
thrownew\Exception('Error: config/permission.php not loaded. Run [php artisan config:clear] and try again.');
19
+
thrownewException('Error: config/permission.php not loaded. Run [php artisan config:clear] and try again.');
20
20
}
21
21
if ($teams && empty($columnNames['team_foreign_key'] ?? null)) {
22
-
thrownew\Exception('Error: team_foreign_key on config/permission.php not loaded. Run [php artisan config:clear] and try again.');
22
+
thrownewException('Error: team_foreign_key on config/permission.php not loaded. Run [php artisan config:clear] and try again.');
23
23
}
24
24
25
25
Schema::create($tableNames['permissions'], function (Blueprint$table): void {
@@ -128,7 +128,7 @@ public function down(): void
128
128
$tableNames = config('permission.table_names');
129
129
130
130
if (empty($tableNames)) {
131
-
thrownew\Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.');
131
+
thrownewException('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding, or drop the tables manually.');
0 commit comments