@@ -10,7 +10,7 @@ |
||
10 | 10 | 'middleware' => ['web'], |
11 | 11 | 'as' => 'laravelroles::', |
12 | 12 | 'namespace' => 'jeremykenedy\LaravelRoles\App\Http\Controllers', |
13 | - ], function () { |
|
13 | + ], function() { |
|
14 | 14 | |
15 | 15 | Route::resource('roles', 'LaravelRolesController'); |
16 | 16 | }); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $tableCheck = Schema::connection($connection)->hasTable($table); |
19 | 19 | |
20 | 20 | if (!$tableCheck) { |
21 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
21 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
22 | 22 | $table->increments('id')->unsigned(); |
23 | 23 | $table->string('name'); |
24 | 24 | $table->string('slug')->unique(); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $tableCheck = Schema::connection($connection)->hasTable($table); |
19 | 19 | |
20 | 20 | if (!$tableCheck) { |
21 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
21 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
22 | 22 | $table->increments('id')->unsigned(); |
23 | 23 | $table->integer('permission_id')->unsigned()->index(); |
24 | 24 | $table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $tableCheck = Schema::connection($connection)->hasTable($table); |
19 | 19 | |
20 | 20 | if (!$tableCheck) { |
21 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
21 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
22 | 22 | $table->increments('id')->unsigned(); |
23 | 23 | $table->integer('permission_id')->unsigned()->index(); |
24 | 24 | $table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade'); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $tableCheck = Schema::connection($connection)->hasTable($table); |
19 | 19 | |
20 | 20 | if (!$tableCheck) { |
21 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
21 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
22 | 22 | $table->increments('id')->unsigned(); |
23 | 23 | $table->string('name'); |
24 | 24 | $table->string('slug')->unique(); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $tableCheck = Schema::connection($connection)->hasTable($table); |
19 | 19 | |
20 | 20 | if (!$tableCheck) { |
21 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
21 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
22 | 22 | $table->increments('id')->unsigned(); |
23 | 23 | $table->integer('role_id')->unsigned()->index(); |
24 | 24 | $table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade'); |