@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | $role = Role::updateOrInsert([ |
| 22 | 22 | 'name' => 'Admin', |
| 23 | - ],[ |
|
| 23 | + ], [ |
|
| 24 | 24 | 'created_at' => \DB::raw('NOW()'), |
| 25 | 25 | 'updated_at' => \DB::raw('NOW()') |
| 26 | 26 | ]); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | AclUser::updateOrInsert([ |
| 32 | 32 | 'email' => '[email protected]', |
| 33 | - ],[ |
|
| 33 | + ], [ |
|
| 34 | 34 | 'name' => 'Admin', |
| 35 | 35 | 'password' => bcrypt('123456'), |
| 36 | 36 | 'confirmed' => 1, |
@@ -18,12 +18,12 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Assign default users to admin roles. |
| 20 | 20 | */ |
| 21 | - $adminRoleId = Role::where('name', 'Admin')->select('id')->first()->id;; |
|
| 21 | + $adminRoleId = Role::where('name', 'Admin')->select('id')->first()->id; ; |
|
| 22 | 22 | $adminUserId = AclUser::where('email', '[email protected]')->select('id')->first()->id; |
| 23 | 23 | \DB::table('users_roles')->updateOrInsert([ |
| 24 | 24 | 'user_id' => $adminUserId, |
| 25 | 25 | 'role_id' => $adminRoleId, |
| 26 | - ],[]); |
|
| 26 | + ], []); |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Insert the permissions related to roles table. |
@@ -12,14 +12,14 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('roles', function (Blueprint $table) { |
|
| 15 | + Schema::create('roles', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name', 100)->unique(); |
| 18 | 18 | $table->softDeletes(); |
| 19 | 19 | $table->timestamps(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - Schema::create('users_roles', function (Blueprint $table) { |
|
| 22 | + Schema::create('users_roles', function(Blueprint $table) { |
|
| 23 | 23 | $table->increments('id'); |
| 24 | 24 | $table->unsignedInteger('user_id'); |
| 25 | 25 | $table->unsignedInteger('role_id'); |