Completed
Push — master ( 77fab1...782f26 )
by Sherif
01:58
created
src/Modules/Users/Database/Seeds/UsersTableSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Modules/Roles/Database/Seeds/RolesTableSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Modules/Roles/Database/Migrations/2015_12_22_145819_roles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.