Completed
Branch master (31d995)
by Nate
09:29
created
app/Seller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @var array
16 16
      */
17
-    protected $fillable = ['name', 'phone', 'description'];
17
+    protected $fillable = [ 'name', 'phone', 'description' ];
18 18
 
19 19
     /**
20 20
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
Please login to merge, or discard this patch.
app/Http/administrator/routes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Use 'web' middleware if you using laravel version since 5.2
4 4
 
5
-Route::group(['prefix' => 'admin', 'middleware' => 'web'], function () {
5
+Route::group([ 'prefix' => 'admin', 'middleware' => 'web' ], function() {
6 6
     /*
7 7
     |-------------------------------------------------------
8 8
     | Authentication
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     Route::get('logout', 'Keyhunter\Administrator\AuthController@logout');
14 14
 });
15 15
 
16
-Route::group(['prefix' => 'admin'
17
-    , 'middleware' => ['web', '\Keyhunter\Administrator\Middleware\Authenticate']
18
-], function () {
19
-    Route::get('/', function () {
16
+Route::group([ 'prefix' => 'admin'
17
+    , 'middleware' => [ 'web', '\Keyhunter\Administrator\Middleware\Authenticate' ]
18
+], function() {
19
+    Route::get('/', function() {
20 20
         $homepage = config('administrator.home_page', '/members');
21 21
 
22 22
         return \Redirect::to($homepage);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     | Settings
28 28
     |-------------------------------------------------------
29 29
     */
30
-    Route::group(['middleware' => '\Keyhunter\Administrator\Middleware\Settings'], function () {
30
+    Route::group([ 'middleware' => '\Keyhunter\Administrator\Middleware\Settings' ], function() {
31 31
         Route::get('settings/{page}',
32 32
             [
33 33
                 'as' => 'admin_settings_edit',
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     | Main Scaffolding routes
47 47
     |-------------------------------------------------------
48 48
     */
49
-    Route::group(['middleware' => '\Keyhunter\Administrator\Middleware\Module'], function () {
49
+    Route::group([ 'middleware' => '\Keyhunter\Administrator\Middleware\Module' ], function() {
50 50
         /*
51 51
         |-------------------------------------------------------
52 52
         | Custom routes
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function __construct()
39 39
     {
40
-        $this->middleware($this->guestMiddleware(), ['except' => 'logout']);
40
+        $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]);
41 41
     }
42 42
 
43 43
     /**
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     protected function create(array $data)
65 65
     {
66 66
         return User::create([
67
-            'name' => $data['name'],
68
-            'email' => $data['email'],
69
-            'password' => bcrypt($data['password']),
67
+            'name' => $data[ 'name' ],
68
+            'email' => $data[ 'email' ],
69
+            'password' => bcrypt($data[ 'password' ]),
70 70
         ]);
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     Route::get('/', [
17 17
         'as' => 'home',
18
-        'uses' => function () {
18
+        'uses' => function() {
19 19
             return view('home');
20 20
         }
21 21
     ]);
Please login to merge, or discard this patch.