Completed
Push — master ( e2d103...eb2586 )
by Sherif
01:46
created
src/Modules/Acl/Database/Seeds/PermissionsTableSeeder.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -6,64 +6,64 @@
 block discarded – undo
6 6
 
7 7
 class PermissionsTableSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        /**
17
-         * Insert the permissions related to permissions table.
18
-         */
19
-        \DB::table('permissions')->insert(
20
-            [
21
-                /**
22
-                 * Permissions model permissions.
23
-                 */
24
-                [
25
-                'name'       => 'find',
26
-                'model'      => 'permissions',
27
-                'created_at' => \DB::raw('NOW()'),
28
-                'updated_at' => \DB::raw('NOW()')
29
-                ],
30
-                [
31
-                'name'       => 'search',
32
-                'model'      => 'permissions',
33
-                'created_at' => \DB::raw('NOW()'),
34
-                'updated_at' => \DB::raw('NOW()')
35
-                ],
36
-                [
37
-                'name'       => 'list',
38
-                'model'      => 'permissions',
39
-                'created_at' => \DB::raw('NOW()'),
40
-                'updated_at' => \DB::raw('NOW()')
41
-                ],
42
-                [
43
-                'name'       => 'findby',
44
-                'model'      => 'permissions',
45
-                'created_at' => \DB::raw('NOW()'),
46
-                'updated_at' => \DB::raw('NOW()')
47
-                ],
48
-                [
49
-                'name'       => 'first',
50
-                'model'      => 'permissions',
51
-                'created_at' => \DB::raw('NOW()'),
52
-                'updated_at' => \DB::raw('NOW()')
53
-                ],
54
-                [
55
-                'name'       => 'paginate',
56
-                'model'      => 'permissions',
57
-                'created_at' => \DB::raw('NOW()'),
58
-                'updated_at' => \DB::raw('NOW()')
59
-                ],
60
-                [
61
-                'name'       => 'paginateby',
62
-                'model'      => 'permissions',
63
-                'created_at' => \DB::raw('NOW()'),
64
-                'updated_at' => \DB::raw('NOW()')
65
-                ]
66
-            ]
67
-        );
68
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		/**
17
+		 * Insert the permissions related to permissions table.
18
+		 */
19
+		\DB::table('permissions')->insert(
20
+			[
21
+				/**
22
+				 * Permissions model permissions.
23
+				 */
24
+				[
25
+				'name'       => 'find',
26
+				'model'      => 'permissions',
27
+				'created_at' => \DB::raw('NOW()'),
28
+				'updated_at' => \DB::raw('NOW()')
29
+				],
30
+				[
31
+				'name'       => 'search',
32
+				'model'      => 'permissions',
33
+				'created_at' => \DB::raw('NOW()'),
34
+				'updated_at' => \DB::raw('NOW()')
35
+				],
36
+				[
37
+				'name'       => 'list',
38
+				'model'      => 'permissions',
39
+				'created_at' => \DB::raw('NOW()'),
40
+				'updated_at' => \DB::raw('NOW()')
41
+				],
42
+				[
43
+				'name'       => 'findby',
44
+				'model'      => 'permissions',
45
+				'created_at' => \DB::raw('NOW()'),
46
+				'updated_at' => \DB::raw('NOW()')
47
+				],
48
+				[
49
+				'name'       => 'first',
50
+				'model'      => 'permissions',
51
+				'created_at' => \DB::raw('NOW()'),
52
+				'updated_at' => \DB::raw('NOW()')
53
+				],
54
+				[
55
+				'name'       => 'paginate',
56
+				'model'      => 'permissions',
57
+				'created_at' => \DB::raw('NOW()'),
58
+				'updated_at' => \DB::raw('NOW()')
59
+				],
60
+				[
61
+				'name'       => 'paginateby',
62
+				'model'      => 'permissions',
63
+				'created_at' => \DB::raw('NOW()'),
64
+				'updated_at' => \DB::raw('NOW()')
65
+				]
66
+			]
67
+		);
68
+	}
69 69
 }
Please login to merge, or discard this patch.
src/Modules/Acl/Database/Seeds/GroupsTableSeeder.php 1 patch
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -6,94 +6,94 @@
 block discarded – undo
6 6
 
7 7
 class GroupsTableSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        /**
17
-         * Insert the permissions related to groups table.
18
-         */
19
-        \DB::table('permissions')->insert(
20
-            [
21
-                /**
22
-                 * Groups model permissions.
23
-                 */
24
-                [
25
-                'name'       => 'save',
26
-                'model'      => 'groups',
27
-                'created_at' => \DB::raw('NOW()'),
28
-                'updated_at' => \DB::raw('NOW()')
29
-                ],
30
-                [
31
-                'name'       => 'delete',
32
-                'model'      => 'groups',
33
-                'created_at' => \DB::raw('NOW()'),
34
-                'updated_at' => \DB::raw('NOW()')
35
-                ],
36
-                [
37
-                'name'       => 'find',
38
-                'model'      => 'groups',
39
-                'created_at' => \DB::raw('NOW()'),
40
-                'updated_at' => \DB::raw('NOW()')
41
-                ],
42
-                [
43
-                'name'       => 'search',
44
-                'model'      => 'groups',
45
-                'created_at' => \DB::raw('NOW()'),
46
-                'updated_at' => \DB::raw('NOW()')
47
-                ],
48
-                [
49
-                'name'       => 'list',
50
-                'model'      => 'groups',
51
-                'created_at' => \DB::raw('NOW()'),
52
-                'updated_at' => \DB::raw('NOW()')
53
-                ],
54
-                [
55
-                'name'       => 'findby',
56
-                'model'      => 'groups',
57
-                'created_at' => \DB::raw('NOW()'),
58
-                'updated_at' => \DB::raw('NOW()')
59
-                ],
60
-                [
61
-                'name'       => 'first',
62
-                'model'      => 'groups',
63
-                'created_at' => \DB::raw('NOW()'),
64
-                'updated_at' => \DB::raw('NOW()')
65
-                ],
66
-                [
67
-                'name'       => 'paginate',
68
-                'model'      => 'groups',
69
-                'created_at' => \DB::raw('NOW()'),
70
-                'updated_at' => \DB::raw('NOW()')
71
-                ],
72
-                [
73
-                'name'       => 'paginateby',
74
-                'model'      => 'groups',
75
-                'created_at' => \DB::raw('NOW()'),
76
-                'updated_at' => \DB::raw('NOW()')
77
-                ],
78
-                [
79
-                'name'       => 'assignpermissions',
80
-                'model'      => 'groups',
81
-                'created_at' => \DB::raw('NOW()'),
82
-                'updated_at' => \DB::raw('NOW()')
83
-                ],
84
-                [
85
-                'name'       => 'deleted',
86
-                'model'      => 'groups',
87
-                'created_at' => \DB::raw('NOW()'),
88
-                'updated_at' => \DB::raw('NOW()')
89
-                ],
90
-                [
91
-                'name'       => 'restore',
92
-                'model'      => 'groups',
93
-                'created_at' => \DB::raw('NOW()'),
94
-                'updated_at' => \DB::raw('NOW()')
95
-                ]
96
-            ]
97
-        );
98
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		/**
17
+		 * Insert the permissions related to groups table.
18
+		 */
19
+		\DB::table('permissions')->insert(
20
+			[
21
+				/**
22
+				 * Groups model permissions.
23
+				 */
24
+				[
25
+				'name'       => 'save',
26
+				'model'      => 'groups',
27
+				'created_at' => \DB::raw('NOW()'),
28
+				'updated_at' => \DB::raw('NOW()')
29
+				],
30
+				[
31
+				'name'       => 'delete',
32
+				'model'      => 'groups',
33
+				'created_at' => \DB::raw('NOW()'),
34
+				'updated_at' => \DB::raw('NOW()')
35
+				],
36
+				[
37
+				'name'       => 'find',
38
+				'model'      => 'groups',
39
+				'created_at' => \DB::raw('NOW()'),
40
+				'updated_at' => \DB::raw('NOW()')
41
+				],
42
+				[
43
+				'name'       => 'search',
44
+				'model'      => 'groups',
45
+				'created_at' => \DB::raw('NOW()'),
46
+				'updated_at' => \DB::raw('NOW()')
47
+				],
48
+				[
49
+				'name'       => 'list',
50
+				'model'      => 'groups',
51
+				'created_at' => \DB::raw('NOW()'),
52
+				'updated_at' => \DB::raw('NOW()')
53
+				],
54
+				[
55
+				'name'       => 'findby',
56
+				'model'      => 'groups',
57
+				'created_at' => \DB::raw('NOW()'),
58
+				'updated_at' => \DB::raw('NOW()')
59
+				],
60
+				[
61
+				'name'       => 'first',
62
+				'model'      => 'groups',
63
+				'created_at' => \DB::raw('NOW()'),
64
+				'updated_at' => \DB::raw('NOW()')
65
+				],
66
+				[
67
+				'name'       => 'paginate',
68
+				'model'      => 'groups',
69
+				'created_at' => \DB::raw('NOW()'),
70
+				'updated_at' => \DB::raw('NOW()')
71
+				],
72
+				[
73
+				'name'       => 'paginateby',
74
+				'model'      => 'groups',
75
+				'created_at' => \DB::raw('NOW()'),
76
+				'updated_at' => \DB::raw('NOW()')
77
+				],
78
+				[
79
+				'name'       => 'assignpermissions',
80
+				'model'      => 'groups',
81
+				'created_at' => \DB::raw('NOW()'),
82
+				'updated_at' => \DB::raw('NOW()')
83
+				],
84
+				[
85
+				'name'       => 'deleted',
86
+				'model'      => 'groups',
87
+				'created_at' => \DB::raw('NOW()'),
88
+				'updated_at' => \DB::raw('NOW()')
89
+				],
90
+				[
91
+				'name'       => 'restore',
92
+				'model'      => 'groups',
93
+				'created_at' => \DB::raw('NOW()'),
94
+				'updated_at' => \DB::raw('NOW()')
95
+				]
96
+			]
97
+		);
98
+	}
99 99
 }
Please login to merge, or discard this patch.
src/Modules/Acl/Database/Seeds/AclDatabaseSeeder.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 
7 7
 class AclDatabaseSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $this->call(ClearDataSeeder::class);
17
-        $this->call(UsersTableSeeder::class);
18
-        $this->call(GroupsTableSeeder::class);
19
-        $this->call(PermissionsTableSeeder::class);
20
-        $this->call(OauthClientsTableSeeder::class);
21
-        $this->call(AssignRelationsSeeder::class);
22
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$this->call(ClearDataSeeder::class);
17
+		$this->call(UsersTableSeeder::class);
18
+		$this->call(GroupsTableSeeder::class);
19
+		$this->call(PermissionsTableSeeder::class);
20
+		$this->call(OauthClientsTableSeeder::class);
21
+		$this->call(AssignRelationsSeeder::class);
22
+	}
23 23
 }
Please login to merge, or discard this patch.
src/Modules/Acl/Database/Seeds/OauthClientsTableSeeder.php 1 patch
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -6,82 +6,82 @@
 block discarded – undo
6 6
 
7 7
 class OauthClientsTableSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        /**
17
-         * Insert the permissions related to oauthClients table.
18
-         */
19
-        \DB::table('permissions')->insert(
20
-            [
21
-                /**
22
-                 * Users model permissions.
23
-                 */
24
-                [
25
-                'name'       => 'list',
26
-                'model'      => 'oauthClients',
27
-                'created_at' => \DB::raw('NOW()'),
28
-                'updated_at' => \DB::raw('NOW()')
29
-                ],
30
-                [
31
-                'name'       => 'find',
32
-                'model'      => 'oauthClients',
33
-                'created_at' => \DB::raw('NOW()'),
34
-                'updated_at' => \DB::raw('NOW()')
35
-                ],
36
-                [
37
-                'name'       => 'search',
38
-                'model'      => 'oauthClients',
39
-                'created_at' => \DB::raw('NOW()'),
40
-                'updated_at' => \DB::raw('NOW()')
41
-                ],
42
-                [
43
-                'name'       => 'paginate',
44
-                'model'      => 'oauthClients',
45
-                'created_at' => \DB::raw('NOW()'),
46
-                'updated_at' => \DB::raw('NOW()')
47
-                ],
48
-                [
49
-                'name'       => 'revoke',
50
-                'model'      => 'oauthClients',
51
-                'created_at' => \DB::raw('NOW()'),
52
-                'updated_at' => \DB::raw('NOW()')
53
-                ],
54
-                [
55
-                'name'       => 'unRevoke',
56
-                'model'      => 'oauthClients',
57
-                'created_at' => \DB::raw('NOW()'),
58
-                'updated_at' => \DB::raw('NOW()')
59
-                ],
60
-                [
61
-                'name'       => 'first',
62
-                'model'      => 'oauthClients',
63
-                'created_at' => \DB::raw('NOW()'),
64
-                'updated_at' => \DB::raw('NOW()')
65
-                ],
66
-                [
67
-                'name'       => 'findby',
68
-                'model'      => 'oauthClients',
69
-                'created_at' => \DB::raw('NOW()'),
70
-                'updated_at' => \DB::raw('NOW()')
71
-                ],
72
-                [
73
-                'name'       => 'paginateby',
74
-                'model'      => 'oauthClients',
75
-                'created_at' => \DB::raw('NOW()'),
76
-                'updated_at' => \DB::raw('NOW()')
77
-                ],
78
-                [
79
-                'name'       => 'save',
80
-                'model'      => 'oauthClients',
81
-                'created_at' => \DB::raw('NOW()'),
82
-                'updated_at' => \DB::raw('NOW()')
83
-                ]
84
-            ]
85
-        );
86
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		/**
17
+		 * Insert the permissions related to oauthClients table.
18
+		 */
19
+		\DB::table('permissions')->insert(
20
+			[
21
+				/**
22
+				 * Users model permissions.
23
+				 */
24
+				[
25
+				'name'       => 'list',
26
+				'model'      => 'oauthClients',
27
+				'created_at' => \DB::raw('NOW()'),
28
+				'updated_at' => \DB::raw('NOW()')
29
+				],
30
+				[
31
+				'name'       => 'find',
32
+				'model'      => 'oauthClients',
33
+				'created_at' => \DB::raw('NOW()'),
34
+				'updated_at' => \DB::raw('NOW()')
35
+				],
36
+				[
37
+				'name'       => 'search',
38
+				'model'      => 'oauthClients',
39
+				'created_at' => \DB::raw('NOW()'),
40
+				'updated_at' => \DB::raw('NOW()')
41
+				],
42
+				[
43
+				'name'       => 'paginate',
44
+				'model'      => 'oauthClients',
45
+				'created_at' => \DB::raw('NOW()'),
46
+				'updated_at' => \DB::raw('NOW()')
47
+				],
48
+				[
49
+				'name'       => 'revoke',
50
+				'model'      => 'oauthClients',
51
+				'created_at' => \DB::raw('NOW()'),
52
+				'updated_at' => \DB::raw('NOW()')
53
+				],
54
+				[
55
+				'name'       => 'unRevoke',
56
+				'model'      => 'oauthClients',
57
+				'created_at' => \DB::raw('NOW()'),
58
+				'updated_at' => \DB::raw('NOW()')
59
+				],
60
+				[
61
+				'name'       => 'first',
62
+				'model'      => 'oauthClients',
63
+				'created_at' => \DB::raw('NOW()'),
64
+				'updated_at' => \DB::raw('NOW()')
65
+				],
66
+				[
67
+				'name'       => 'findby',
68
+				'model'      => 'oauthClients',
69
+				'created_at' => \DB::raw('NOW()'),
70
+				'updated_at' => \DB::raw('NOW()')
71
+				],
72
+				[
73
+				'name'       => 'paginateby',
74
+				'model'      => 'oauthClients',
75
+				'created_at' => \DB::raw('NOW()'),
76
+				'updated_at' => \DB::raw('NOW()')
77
+				],
78
+				[
79
+				'name'       => 'save',
80
+				'model'      => 'oauthClients',
81
+				'created_at' => \DB::raw('NOW()'),
82
+				'updated_at' => \DB::raw('NOW()')
83
+				]
84
+			]
85
+		);
86
+	}
87 87
 }
Please login to merge, or discard this patch.
src/Modules/Acl/Providers/RouteServiceProvider.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -7,73 +7,73 @@
 block discarded – undo
7 7
 
8 8
 class RouteServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * This namespace is applied to your controller routes.
12
-     *
13
-     * In addition, it is set as the URL generator's root namespace.
14
-     *
15
-     * @var string
16
-     */
17
-    protected $namespace = 'App\Modules\Acl\Http\Controllers';
10
+	/**
11
+	 * This namespace is applied to your controller routes.
12
+	 *
13
+	 * In addition, it is set as the URL generator's root namespace.
14
+	 *
15
+	 * @var string
16
+	 */
17
+	protected $namespace = 'App\Modules\Acl\Http\Controllers';
18 18
 
19
-    /**
20
-     * Define your route model bindings, pattern filters, etc.
21
-     *
22
-     * @return void
23
-     */
24
-    public function boot()
25
-    {
26
-        //
19
+	/**
20
+	 * Define your route model bindings, pattern filters, etc.
21
+	 *
22
+	 * @return void
23
+	 */
24
+	public function boot()
25
+	{
26
+		//
27 27
 
28
-        parent::boot();
29
-    }
28
+		parent::boot();
29
+	}
30 30
 
31
-    /**
32
-     * Define the routes for the module.
33
-     *
34
-     * @return void
35
-     */
36
-    public function map()
37
-    {
38
-        $this->mapWebRoutes();
31
+	/**
32
+	 * Define the routes for the module.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function map()
37
+	{
38
+		$this->mapWebRoutes();
39 39
 
40
-        $this->mapApiRoutes();
40
+		$this->mapApiRoutes();
41 41
 
42
-        //
43
-    }
42
+		//
43
+	}
44 44
 
45
-    /**
46
-     * Define the "web" routes for the module.
47
-     *
48
-     * These routes all receive session state, CSRF protection, etc.
49
-     *
50
-     * @return void
51
-     */
52
-    protected function mapWebRoutes()
53
-    {
54
-        Route::group([
55
-            'middleware' => 'web',
56
-            'namespace'  => $this->namespace,
57
-        ], function ($router) {
58
-            require module_path('acl', 'Routes/web.php');
59
-        });
60
-    }
45
+	/**
46
+	 * Define the "web" routes for the module.
47
+	 *
48
+	 * These routes all receive session state, CSRF protection, etc.
49
+	 *
50
+	 * @return void
51
+	 */
52
+	protected function mapWebRoutes()
53
+	{
54
+		Route::group([
55
+			'middleware' => 'web',
56
+			'namespace'  => $this->namespace,
57
+		], function ($router) {
58
+			require module_path('acl', 'Routes/web.php');
59
+		});
60
+	}
61 61
 
62
-    /**
63
-     * Define the "api" routes for the module.
64
-     *
65
-     * These routes are typically stateless.
66
-     *
67
-     * @return void
68
-     */
69
-    protected function mapApiRoutes()
70
-    {
71
-        Route::group([
72
-            'middleware' => 'api',
73
-            'namespace'  => $this->namespace,
74
-            'prefix'     => 'api',
75
-        ], function ($router) {
76
-            require module_path('acl', 'Routes/api.php');
77
-        });
78
-    }
62
+	/**
63
+	 * Define the "api" routes for the module.
64
+	 *
65
+	 * These routes are typically stateless.
66
+	 *
67
+	 * @return void
68
+	 */
69
+	protected function mapApiRoutes()
70
+	{
71
+		Route::group([
72
+			'middleware' => 'api',
73
+			'namespace'  => $this->namespace,
74
+			'prefix'     => 'api',
75
+		], function ($router) {
76
+			require module_path('acl', 'Routes/api.php');
77
+		});
78
+	}
79 79
 }
Please login to merge, or discard this patch.
src/Modules/Acl/Routes/api.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -13,75 +13,75 @@
 block discarded – undo
13 13
 
14 14
 Route::group(['prefix' => 'acl'], function () {
15 15
 
16
-    Route::group(['prefix' => 'users'], function () {
16
+	Route::group(['prefix' => 'users'], function () {
17 17
         
18
-        Route::get('list/{sortBy?}/{desc?}', 'UsersController@index');
19
-        Route::get('find/{id}', 'UsersController@find');
20
-        Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'UsersController@search');
21
-        Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'UsersController@paginate');
22
-        Route::get('delete/{id}', 'UsersController@delete');
23
-        Route::get('restore/{id}', 'UsersController@restore');
24
-        Route::get('account', 'UsersController@account');
25
-        Route::get('block/{id}', 'UsersController@block');
26
-        Route::get('unblock/{id}', 'UsersController@unblock');
27
-        Route::get('logout', 'UsersController@logout');
28
-        Route::post('refreshtoken', 'UsersController@refreshtoken');
29
-        Route::post('first', 'UsersController@first');
30
-        Route::post('findby/{sortBy?}/{desc?}', 'UsersController@findby');
31
-        Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'UsersController@paginateby');
32
-        Route::post('save', 'UsersController@save');
33
-        Route::post('profile/save', 'UsersController@saveProfile');
34
-        Route::post('deleted/{perPage?}/{sortBy?}/{desc?}', 'UsersController@deleted');
35
-        Route::post('register', 'UsersController@register');
36
-        Route::post('login', 'UsersController@login');
37
-        Route::post('login/social', 'UsersController@loginSocial');
38
-        Route::post('assigngroups', 'UsersController@assigngroups');
39
-        Route::post('sendreset', 'UsersController@sendreset');
40
-        Route::post('resetpassword', 'UsersController@resetpassword');
41
-        Route::post('changepassword', 'UsersController@changePassword');
42
-        Route::post('confirm/email', 'UsersController@confirmEmail');
43
-        Route::post('resend/email/confirmation', 'UsersController@resendEmailConfirmation');
44
-        Route::post('group/{groupName}/{perPage?}/{sortBy?}/{desc?}', 'UsersController@group');
45
-    });
18
+		Route::get('list/{sortBy?}/{desc?}', 'UsersController@index');
19
+		Route::get('find/{id}', 'UsersController@find');
20
+		Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'UsersController@search');
21
+		Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'UsersController@paginate');
22
+		Route::get('delete/{id}', 'UsersController@delete');
23
+		Route::get('restore/{id}', 'UsersController@restore');
24
+		Route::get('account', 'UsersController@account');
25
+		Route::get('block/{id}', 'UsersController@block');
26
+		Route::get('unblock/{id}', 'UsersController@unblock');
27
+		Route::get('logout', 'UsersController@logout');
28
+		Route::post('refreshtoken', 'UsersController@refreshtoken');
29
+		Route::post('first', 'UsersController@first');
30
+		Route::post('findby/{sortBy?}/{desc?}', 'UsersController@findby');
31
+		Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'UsersController@paginateby');
32
+		Route::post('save', 'UsersController@save');
33
+		Route::post('profile/save', 'UsersController@saveProfile');
34
+		Route::post('deleted/{perPage?}/{sortBy?}/{desc?}', 'UsersController@deleted');
35
+		Route::post('register', 'UsersController@register');
36
+		Route::post('login', 'UsersController@login');
37
+		Route::post('login/social', 'UsersController@loginSocial');
38
+		Route::post('assigngroups', 'UsersController@assigngroups');
39
+		Route::post('sendreset', 'UsersController@sendreset');
40
+		Route::post('resetpassword', 'UsersController@resetpassword');
41
+		Route::post('changepassword', 'UsersController@changePassword');
42
+		Route::post('confirm/email', 'UsersController@confirmEmail');
43
+		Route::post('resend/email/confirmation', 'UsersController@resendEmailConfirmation');
44
+		Route::post('group/{groupName}/{perPage?}/{sortBy?}/{desc?}', 'UsersController@group');
45
+	});
46 46
 
47
-    Route::group(['prefix' => 'groups'], function () {
47
+	Route::group(['prefix' => 'groups'], function () {
48 48
 
49
-        Route::get('list/{sortBy?}/{desc?}', 'GroupsController@index');
50
-        Route::get('find/{id}', 'GroupsController@find');
51
-        Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@search');
52
-        Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@paginate');
53
-        Route::get('delete/{id}', 'GroupsController@delete');
54
-        Route::get('restore/{id}', 'GroupsController@restore');
55
-        Route::post('first', 'GroupsController@first');
56
-        Route::post('findby/{sortBy?}/{desc?}', 'GroupsController@findby');
57
-        Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@paginateby');
58
-        Route::post('save', 'GroupsController@save');
59
-        Route::post('deleted/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@deleted');
60
-        Route::post('assignpermissions', 'GroupsController@assignpermissions');
61
-    });
49
+		Route::get('list/{sortBy?}/{desc?}', 'GroupsController@index');
50
+		Route::get('find/{id}', 'GroupsController@find');
51
+		Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@search');
52
+		Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@paginate');
53
+		Route::get('delete/{id}', 'GroupsController@delete');
54
+		Route::get('restore/{id}', 'GroupsController@restore');
55
+		Route::post('first', 'GroupsController@first');
56
+		Route::post('findby/{sortBy?}/{desc?}', 'GroupsController@findby');
57
+		Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@paginateby');
58
+		Route::post('save', 'GroupsController@save');
59
+		Route::post('deleted/{perPage?}/{sortBy?}/{desc?}', 'GroupsController@deleted');
60
+		Route::post('assignpermissions', 'GroupsController@assignpermissions');
61
+	});
62 62
     
63
-    Route::group(['prefix' => 'permissions'], function () {
63
+	Route::group(['prefix' => 'permissions'], function () {
64 64
         
65
-        Route::get('list/{sortBy?}/{desc?}', 'PermissionsController@index');
66
-        Route::get('find/{id}', 'PermissionsController@find');
67
-        Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@search');
68
-        Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@paginate');
69
-        Route::post('first', 'PermissionsController@first');
70
-        Route::post('findby/{sortBy?}/{desc?}', 'PermissionsController@findby');
71
-        Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@paginateby');
72
-    });
65
+		Route::get('list/{sortBy?}/{desc?}', 'PermissionsController@index');
66
+		Route::get('find/{id}', 'PermissionsController@find');
67
+		Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@search');
68
+		Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@paginate');
69
+		Route::post('first', 'PermissionsController@first');
70
+		Route::post('findby/{sortBy?}/{desc?}', 'PermissionsController@findby');
71
+		Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@paginateby');
72
+	});
73 73
 
74
-    Route::group(['prefix' => 'oauth/clients'], function () {
74
+	Route::group(['prefix' => 'oauth/clients'], function () {
75 75
         
76
-        Route::get('list/{sortBy?}/{desc?}', 'OauthClientsController@index');
77
-        Route::get('find/{id}', 'OauthClientsController@find');
78
-        Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@search');
79
-        Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@paginate');
80
-        Route::get('revoke/{id}', 'OauthClientsController@revoke');
81
-        Route::get('unrevoke/{id}', 'OauthClientsController@unRevoke');
82
-        Route::post('first', 'OauthClientsController@first');
83
-        Route::post('findby/{sortBy?}/{desc?}', 'OauthClientsController@findby');
84
-        Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@paginateby');
85
-        Route::post('save', 'OauthClientsController@save');
86
-    });
76
+		Route::get('list/{sortBy?}/{desc?}', 'OauthClientsController@index');
77
+		Route::get('find/{id}', 'OauthClientsController@find');
78
+		Route::get('search/{query?}/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@search');
79
+		Route::get('paginate/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@paginate');
80
+		Route::get('revoke/{id}', 'OauthClientsController@revoke');
81
+		Route::get('unrevoke/{id}', 'OauthClientsController@unRevoke');
82
+		Route::post('first', 'OauthClientsController@first');
83
+		Route::post('findby/{sortBy?}/{desc?}', 'OauthClientsController@findby');
84
+		Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'OauthClientsController@paginateby');
85
+		Route::post('save', 'OauthClientsController@save');
86
+	});
87 87
 });
Please login to merge, or discard this patch.
src/Modules/Acl/ModelObservers/AclPermissionObserver.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -6,53 +6,53 @@
 block discarded – undo
6 6
 class AclPermissionObserver
7 7
 {
8 8
 
9
-    public function saving($model)
10
-    {
11
-        //
12
-    }
13
-
14
-    public function saved($model)
15
-    {
16
-        //
17
-    }
18
-
19
-    public function creating($model)
20
-    {
21
-        //
22
-    }
23
-
24
-    public function created($model)
25
-    {
26
-        //
27
-    }
28
-
29
-    public function updating($model)
30
-    {
31
-        //
32
-    }
33
-
34
-    public function updated($model)
35
-    {
36
-        //
37
-    }
38
-
39
-    public function deleting($model)
40
-    {
41
-        //
42
-    }
43
-
44
-    public function deleted($model)
45
-    {
46
-        //
47
-    }
48
-
49
-    public function restoring($model)
50
-    {
51
-        //
52
-    }
53
-
54
-    public function restored($model)
55
-    {
56
-        //
57
-    }
9
+	public function saving($model)
10
+	{
11
+		//
12
+	}
13
+
14
+	public function saved($model)
15
+	{
16
+		//
17
+	}
18
+
19
+	public function creating($model)
20
+	{
21
+		//
22
+	}
23
+
24
+	public function created($model)
25
+	{
26
+		//
27
+	}
28
+
29
+	public function updating($model)
30
+	{
31
+		//
32
+	}
33
+
34
+	public function updated($model)
35
+	{
36
+		//
37
+	}
38
+
39
+	public function deleting($model)
40
+	{
41
+		//
42
+	}
43
+
44
+	public function deleted($model)
45
+	{
46
+		//
47
+	}
48
+
49
+	public function restoring($model)
50
+	{
51
+		//
52
+	}
53
+
54
+	public function restored($model)
55
+	{
56
+		//
57
+	}
58 58
 }
Please login to merge, or discard this patch.
src/Modules/Acl/ModelObservers/AclGroupObserver.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -6,69 +6,69 @@
 block discarded – undo
6 6
 class AclGroupObserver
7 7
 {
8 8
 
9
-    public function saving($model)
10
-    {
11
-        //
12
-    }
9
+	public function saving($model)
10
+	{
11
+		//
12
+	}
13 13
 
14
-    public function saved($model)
15
-    {
16
-        //
17
-    }
14
+	public function saved($model)
15
+	{
16
+		//
17
+	}
18 18
 
19
-    public function creating($model)
20
-    {
21
-        //
22
-    }
19
+	public function creating($model)
20
+	{
21
+		//
22
+	}
23 23
 
24
-    public function created($model)
25
-    {
26
-        //
27
-    }
24
+	public function created($model)
25
+	{
26
+		//
27
+	}
28 28
 
29
-    /**
30
-     * Prevent updating of the admin group.
31
-     *
32
-     * @param  object $model the model beign updated.
33
-     * @return void
34
-     */
35
-    public function updating($model)
36
-    {
37
-        if ($model->getOriginal('name') == 'Admin') {
38
-            \ErrorHandler::noPermissions();
39
-        }
40
-    }
29
+	/**
30
+	 * Prevent updating of the admin group.
31
+	 *
32
+	 * @param  object $model the model beign updated.
33
+	 * @return void
34
+	 */
35
+	public function updating($model)
36
+	{
37
+		if ($model->getOriginal('name') == 'Admin') {
38
+			\ErrorHandler::noPermissions();
39
+		}
40
+	}
41 41
 
42
-    public function updated($model)
43
-    {
44
-        //
45
-    }
42
+	public function updated($model)
43
+	{
44
+		//
45
+	}
46 46
 
47
-    /**
48
-     * Prevent deleting the admin group.
49
-     *
50
-     * @param  object $model the delted model.
51
-     * @return void
52
-     */
53
-    public function deleting($model)
54
-    {
55
-        if ($model->getOriginal('name') == 'Admin') {
56
-            \ErrorHandler::noPermissions();
57
-        }
58
-    }
47
+	/**
48
+	 * Prevent deleting the admin group.
49
+	 *
50
+	 * @param  object $model the delted model.
51
+	 * @return void
52
+	 */
53
+	public function deleting($model)
54
+	{
55
+		if ($model->getOriginal('name') == 'Admin') {
56
+			\ErrorHandler::noPermissions();
57
+		}
58
+	}
59 59
 
60
-    public function deleted($model)
61
-    {
62
-        //
63
-    }
60
+	public function deleted($model)
61
+	{
62
+		//
63
+	}
64 64
 
65
-    public function restoring($model)
66
-    {
67
-        //
68
-    }
65
+	public function restoring($model)
66
+	{
67
+		//
68
+	}
69 69
 
70
-    public function restored($model)
71
-    {
72
-        //
73
-    }
70
+	public function restored($model)
71
+	{
72
+		//
73
+	}
74 74
 }
Please login to merge, or discard this patch.
src/Modules/Acl/ModelObservers/OauthClientObserver.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -8,53 +8,53 @@
 block discarded – undo
8 8
 class OauthClientObserver
9 9
 {
10 10
 
11
-    public function saving($model)
12
-    {
13
-        //
14
-    }
15
-
16
-    public function saved($model)
17
-    {
18
-        //
19
-    }
20
-
21
-    public function creating($model)
22
-    {
23
-        $model->secret = Str::random(40);
24
-    }
25
-
26
-    public function created($model)
27
-    {
28
-        //
29
-    }
30
-
31
-    public function updating($model)
32
-    {
33
-        //
34
-    }
35
-
36
-    public function updated($model)
37
-    {
38
-        //
39
-    }
40
-
41
-    public function deleting($model)
42
-    {
43
-        //
44
-    }
45
-
46
-    public function deleted($model)
47
-    {
48
-        //
49
-    }
50
-
51
-    public function restoring($model)
52
-    {
53
-        //
54
-    }
55
-
56
-    public function restored($model)
57
-    {
58
-        //
59
-    }
11
+	public function saving($model)
12
+	{
13
+		//
14
+	}
15
+
16
+	public function saved($model)
17
+	{
18
+		//
19
+	}
20
+
21
+	public function creating($model)
22
+	{
23
+		$model->secret = Str::random(40);
24
+	}
25
+
26
+	public function created($model)
27
+	{
28
+		//
29
+	}
30
+
31
+	public function updating($model)
32
+	{
33
+		//
34
+	}
35
+
36
+	public function updated($model)
37
+	{
38
+		//
39
+	}
40
+
41
+	public function deleting($model)
42
+	{
43
+		//
44
+	}
45
+
46
+	public function deleted($model)
47
+	{
48
+		//
49
+	}
50
+
51
+	public function restoring($model)
52
+	{
53
+		//
54
+	}
55
+
56
+	public function restored($model)
57
+	{
58
+		//
59
+	}
60 60
 }
Please login to merge, or discard this patch.