Passed
Push — develop ( fcd18c...7888af )
by Septianata
11:22
created
app/Http/Requests/Denomination/UpdateRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     {
26 26
         return [
27 27
             'name' => 'required|string|max:255',
28
-            'value' => ['required', 'numeric', 'min:0', Rule::unique(Denomination::class)->ignoreModel($this->route('denomination'))],
29
-            'type' => 'required|enum:' . DenominationType::class,
28
+            'value' => [ 'required', 'numeric', 'min:0', Rule::unique(Denomination::class)->ignoreModel($this->route('denomination')) ],
29
+            'type' => 'required|enum:'.DenominationType::class,
30 30
             'quantity_per_bundle' => 'required|numeric|min:0',
31 31
             'minimum_order_bundle' => 'required|numeric|min:0',
32 32
             'maximum_order_bundle' => 'required|numeric|gte:minimum_order_bundle',
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
         $model = $this->route('denomination');
67 67
 
68 68
         if ($model->getRawOriginal('image') && $this->hasFile($key)) {
69
-            Storage::delete(Denomination::IMAGE_PATH . '/' . $model->getRawOriginal('image'));
69
+            Storage::delete(Denomination::IMAGE_PATH.'/'.$model->getRawOriginal('image'));
70 70
         }
71 71
 
72 72
         $file = $this->file($key);
73 73
 
74 74
         $file->storeAs(
75 75
             Denomination::IMAGE_PATH,
76
-            $filename = ($this->input('value') . '.' . $file->getClientOriginalExtension())
76
+            $filename = ($this->input('value').'.'.$file->getClientOriginalExtension())
77 77
         );
78 78
 
79 79
         return $filename;
Please login to merge, or discard this patch.
app/Http/Requests/Role/StoreRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     public function rules()
23 23
     {
24 24
         return [
25
-            'name' => 'required|string|max:255|unique:' . Role::class,
26
-            'guard_name' => ['required', 'string', Rule::in(array_keys(config('auth.guards')))],
25
+            'name' => 'required|string|max:255|unique:'.Role::class,
26
+            'guard_name' => [ 'required', 'string', Rule::in(array_keys(config('auth.guards'))) ],
27 27
         ];
28 28
     }
29 29
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/CustomerController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function datatable()
33 33
     {
34 34
         return DataTables::eloquent(Customer::query())
35
-            ->setTransformer(fn ($model) => CustomerResource::make($model)->resolve())
35
+            ->setTransformer(fn($model) => CustomerResource::make($model)->resolve())
36 36
             ->toJson();
37 37
     }
38 38
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         return redirect()->route('admin.customer.index')->with([
67 67
             'alert' => [
68 68
                 'type' => 'alert-success',
69
-                'message' => trans('The :resource was created!', ['resource' => trans('admin-lang.customer')]),
69
+                'message' => trans('The :resource was created!', [ 'resource' => trans('admin-lang.customer') ]),
70 70
             ],
71 71
         ]);
72 72
     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         return redirect()->route('admin.customer.index')->with([
103 103
             'alert' => [
104 104
                 'type' => 'alert-success',
105
-                'message' => trans('The :resource was updated!', ['resource' => trans('admin-lang.customer')]),
105
+                'message' => trans('The :resource was updated!', [ 'resource' => trans('admin-lang.customer') ]),
106 106
             ],
107 107
         ]);
108 108
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         return redirect()->route('admin.customer.index')->with([
121 121
             'alert' => [
122 122
                 'type' => 'alert-success',
123
-                'message' => trans('The :resource was deleted!', ['resource' => trans('admin-lang.customer')]),
123
+                'message' => trans('The :resource was deleted!', [ 'resource' => trans('admin-lang.customer') ]),
124 124
             ],
125 125
         ]);
126 126
     }
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function destroyMultiple(Request $request)
135 135
     {
136
-        Customer::destroy($request->input('checkbox', []));
136
+        Customer::destroy($request->input('checkbox', [ ]));
137 137
 
138 138
         return redirect()->route('admin.customer.index')->with([
139 139
             'alert' => [
140 140
                 'type' => 'alert-success',
141
-                'message' => trans('The :resource was deleted!', ['resource' => trans('admin-lang.customer')]),
141
+                'message' => trans('The :resource was deleted!', [ 'resource' => trans('admin-lang.customer') ]),
142 142
             ],
143 143
         ]);
144 144
     }
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function destroyIdentitycardImage(Customer $customer)
153 153
     {
154
-        Storage::delete(Customer::IDENTITYCARD_IMAGE_PATH . '/' . $customer->getRawOriginal('identitycard_image'));
154
+        Storage::delete(Customer::IDENTITYCARD_IMAGE_PATH.'/'.$customer->getRawOriginal('identitycard_image'));
155 155
 
156
-        $customer->update(['identitycard_image' => null]);
156
+        $customer->update([ 'identitycard_image' => null ]);
157 157
 
158 158
         return redirect()->route('admin.customer.edit', $customer)->with([
159 159
             'alert' => [
160 160
                 'type' => 'alert-success',
161
-                'message' => trans('The :resource was deleted!', ['resource' => trans('This image')]),
161
+                'message' => trans('The :resource was deleted!', [ 'resource' => trans('This image') ]),
162 162
             ],
163 163
         ]);
164 164
     }
Please login to merge, or discard this patch.
app/Conversations/RegisterCustomerConversation.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->displayValidationErrorMessage($validationErrorMessage);
34 34
 
35
-        return $this->askRenderable('conversations.exchange.ask-email', function (Answer $answer) {
35
+        return $this->askRenderable('conversations.exchange.ask-email', function(Answer $answer) {
36 36
             $value = $answer->getText();
37 37
             $validator = CustomerStoreRequest::createValidator($value, 'email');
38 38
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 return $this->askEmail($validator->errors()->first('email'));
41 41
             }
42 42
 
43
-            $this->setUserStorage(['email' => $email = $validator->validated()['email']]);
43
+            $this->setUserStorage([ 'email' => $email = $validator->validated()[ 'email' ] ]);
44 44
 
45 45
             $username = $this->getUser()->getUsername();
46 46
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $this->displayValidationErrorMessage($validationErrorMessage);
64 64
 
65
-        return $this->askRenderable('conversations.register-customer.ask-fullname', function (Answer $answer) {
65
+        return $this->askRenderable('conversations.register-customer.ask-fullname', function(Answer $answer) {
66 66
             $value = $answer->getText();
67 67
             $validator = CustomerStoreRequest::createValidator($value, 'fullname');
68 68
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 return $this->askFullName($validator->errors()->first('fullname'));
71 71
             }
72 72
 
73
-            $this->setUserStorage(['fullname' => $validator->validated()['fullname']]);
73
+            $this->setUserStorage([ 'fullname' => $validator->validated()[ 'fullname' ] ]);
74 74
 
75 75
             return $this->askIdentityNumberOption();
76 76
         });
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
                 Button::create(view('conversations.register-customer.reply-identity_number-no')->render())->value('no'),
100 100
             ]);
101 101
 
102
-        return $this->ask($question, function (Answer $answer) {
102
+        return $this->ask($question, function(Answer $answer) {
103 103
             if (!$answer->isInteractiveMessageReply()) {
104 104
                 return;
105 105
             }
106 106
 
107
-            if (!in_array($value = $answer->getValue(), ['yes', 'no'])) {
107
+            if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) {
108 108
                 return $this->askIdentityNumberOption($this->fallbackMessage($answer->getText()));
109 109
             }
110 110
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function backToIdentityNumberOption(): string
123 123
     {
124
-        return trim(view('components.conversations.back', ['text' => 'opsi rekening/KTP'])->render());
124
+        return trim(view('components.conversations.back', [ 'text' => 'opsi rekening/KTP' ])->render());
125 125
     }
126 126
 
127 127
     /**
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             $additionalParameters = $this->keyboardBackToIdentityNumberOption()->toArray()
152 152
         );
153 153
 
154
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response) {
154
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response) {
155 155
             if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
156 156
                 $this->deleteTelegramMessageFromResponse($response);
157 157
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 return $this->askAccountNumber($validator->errors()->first('account_number'));
166 166
             }
167 167
 
168
-            $this->setUserStorage(['account_number' => $validator->validated()['account_number']]);
168
+            $this->setUserStorage([ 'account_number' => $validator->validated()[ 'account_number' ] ]);
169 169
 
170 170
             return $this->askPhone();
171 171
         }, question: $question, additionalParameters: $additionalParameters);
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $additionalParameters = $this->keyboardBackToIdentityNumberOption()->toArray()
187 187
         );
188 188
 
189
-        return $this->getBot()->storeConversation($this, next: function (Answer $answer) use ($response1) {
189
+        return $this->getBot()->storeConversation($this, next: function(Answer $answer) use ($response1) {
190 190
             if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
191 191
                 $this->deleteTelegramMessageFromResponse($response1);
192 192
 
@@ -200,13 +200,13 @@  discard block
 block discarded – undo
200 200
                 return $this->askIdentityCard($validator->errors()->first('identitycard_number'));
201 201
             }
202 202
 
203
-            $this->setUserStorage(['identitycard_number' => $validator->validated()['identitycard_number']]);
203
+            $this->setUserStorage([ 'identitycard_number' => $validator->validated()[ 'identitycard_number' ] ]);
204 204
 
205 205
             $response2 = $this->reply(
206 206
                 $question = view('conversations.register-customer.ask-identitycard_image')->render()
207 207
             );
208 208
 
209
-            return $this->getBot()->storeConversation($this, function (Answer $answer) use ($response1, $response2) {
209
+            return $this->getBot()->storeConversation($this, function(Answer $answer) use ($response1, $response2) {
210 210
                 if (trim($answer->getText()) === $this->backToIdentityNumberOption()) {
211 211
                     $this->deleteTelegramMessageFromResponse($response1);
212 212
                     $this->deleteTelegramMessageFromResponse($response2);
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
                     return $this->askIdentityNumberOption();
215 215
                 }
216 216
 
217
-                $photos = $this->getMessagePayload('photo', []);
217
+                $photos = $this->getMessagePayload('photo', [ ]);
218 218
 
219 219
                 if (empty($photos)) {
220
-                    return $this->askIdentityCard('❌ Foto KTP ' . trans('could not be found.'));
220
+                    return $this->askIdentityCard('❌ Foto KTP '.trans('could not be found.'));
221 221
                 }
222 222
 
223 223
                 $response = $this->reply(view('components.conversations.please-wait')->render());
@@ -227,13 +227,13 @@  discard block
 block discarded – undo
227 227
                 $this->deleteTelegramMessageFromResponse($response);
228 228
 
229 229
                 if (!$filename) {
230
-                    return $this->askIdentityCard('❌ Foto KTP ' . trans('could not be saved.'));
230
+                    return $this->askIdentityCard('❌ Foto KTP '.trans('could not be saved.'));
231 231
                 }
232 232
 
233
-                $this->setUserStorage(['identitycard_image' => $filename]);
233
+                $this->setUserStorage([ 'identitycard_image' => $filename ]);
234 234
 
235 235
                 return $this
236
-                    ->say('✅ ' . trans(':action ran successfully!', ['action' => 'Upload foto KTP']))
236
+                    ->say('✅ '.trans(':action ran successfully!', [ 'action' => 'Upload foto KTP' ]))
237 237
                     ->askPhone();
238 238
             }, $question);
239 239
         }, question: $question, additionalParameters: $additionalParameters);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     {
250 250
         $this->displayValidationErrorMessage($validationErrorMessage);
251 251
 
252
-        return $this->askRenderable('conversations.register-customer.ask-phone', function () {
252
+        return $this->askRenderable('conversations.register-customer.ask-phone', function() {
253 253
             $value = $this->getMessagePayload('contact.phone_number');
254 254
             $validator = CustomerStoreRequest::createValidator($value, 'phone');
255 255
 
@@ -257,15 +257,15 @@  discard block
 block discarded – undo
257 257
                 return $this->askPhone($validator->errors()->first('phone'));
258 258
             }
259 259
 
260
-            $this->setUserStorage(['phone' => $validator->validated()['phone']]);
260
+            $this->setUserStorage([ 'phone' => $validator->validated()[ 'phone' ] ]);
261 261
 
262 262
             return $this->askWhatsappPhone();
263
-        }, additionalParameters: ['reply_markup' => json_encode([
264
-            'keyboard' => [[['text' => '☎️ ' . trans('Send My Phone Number'), 'request_contact' => true]]],
263
+        }, additionalParameters: [ 'reply_markup' => json_encode([
264
+            'keyboard' => [ [ [ 'text' => '☎️ '.trans('Send My Phone Number'), 'request_contact' => true ] ] ],
265 265
             'resize_keyboard' => true,
266 266
             'one_time_keyboard' => true,
267 267
             'remove_keyboard' => true,
268
-        ])]);
268
+        ]) ]);
269 269
     }
270 270
 
271 271
     /**
@@ -278,34 +278,34 @@  discard block
 block discarded – undo
278 278
     {
279 279
         $this->displayValidationErrorMessage($validationErrorMessage);
280 280
 
281
-        $question = Question::create(view('conversations.register-customer.confirm-whatsapp_phone', ['phone' => $this->getUserStorage('phone')])->render())
281
+        $question = Question::create(view('conversations.register-customer.confirm-whatsapp_phone', [ 'phone' => $this->getUserStorage('phone') ])->render())
282 282
             ->callbackId('register_confirm_whatsapp_phone')
283 283
             ->addButtons([
284 284
                 Button::create(view('conversations.register-customer.reply-whatsapp_phone-yes')->render())->value('yes'),
285 285
                 Button::create(view('conversations.register-customer.reply-whatsapp_phone-no')->render())->value('no'),
286 286
             ]);
287 287
 
288
-        return $this->ask($question, function (Answer $answer) {
288
+        return $this->ask($question, function(Answer $answer) {
289 289
             if (!$answer->isInteractiveMessageReply()) {
290 290
                 return;
291 291
             }
292 292
 
293
-            if (!in_array($value = $answer->getValue(), ['yes', 'no'])) {
293
+            if (!in_array($value = $answer->getValue(), [ 'yes', 'no' ])) {
294 294
                 return $this->askWhatsappPhone($this->fallbackMessage($answer->getText()));
295 295
             }
296 296
 
297 297
             $phone = $this->getUserStorage('phone');
298 298
 
299 299
             if ($value === 'yes') {
300
-                $this->setUserStorage(['whatsapp_phone' => $phone]);
300
+                $this->setUserStorage([ 'whatsapp_phone' => $phone ]);
301 301
 
302 302
                 return $this->askLocation();
303 303
             }
304 304
 
305
-            return value(function (string $validationErrorMessage = null) use (&$callback) {
305
+            return value(function(string $validationErrorMessage = null) use (&$callback) {
306 306
                 $this->displayValidationErrorMessage($validationErrorMessage);
307 307
 
308
-                $this->askRenderable('conversations.register-customer.ask-whatsapp_phone', function (Answer $answer) use (&$phone, $callback) {
308
+                $this->askRenderable('conversations.register-customer.ask-whatsapp_phone', function(Answer $answer) use (&$phone, $callback) {
309 309
                     $value = $answer->getText();
310 310
                     $validator = CustomerStoreRequest::createValidator($value, 'whatsapp_phone');
311 311
 
@@ -313,9 +313,9 @@  discard block
 block discarded – undo
313 313
                         return $callback($validator->errors()->first('whatsapp_phone'));
314 314
                     }
315 315
 
316
-                    $phone = $validator->validated()['whatsapp_phone'];
316
+                    $phone = $validator->validated()[ 'whatsapp_phone' ];
317 317
 
318
-                    $this->setUserStorage(['whatsapp_phone' => $phone]);
318
+                    $this->setUserStorage([ 'whatsapp_phone' => $phone ]);
319 319
 
320 320
                     return $this->askLocation();
321 321
                 });
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         $this->displayValidationErrorMessage($validationErrorMessage);
335 335
 
336
-        return $this->askRenderable('conversations.register-customer.ask-location', function () {
336
+        return $this->askRenderable('conversations.register-customer.ask-location', function() {
337 337
             $latitude = $this->getMessagePayload('location.latitude');
338 338
             $longitude = $this->getMessagePayload('location.longitude');
339 339
 
@@ -354,11 +354,11 @@  discard block
 block discarded – undo
354 354
             ]);
355 355
 
356 356
             return $this->askDataConfirmation();
357
-        }, additionalParameters: ['reply_markup' => json_encode([
358
-            'keyboard' => [[['text' => '
Please login to merge, or discard this patch.
database/factories/CustomerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             'whatsapp_phone' => $this->faker->numerify('081#########'),
40 40
             'account_number' => $this->faker->numerify('#########'),
41 41
             'identitycard_number' => $this->faker->numerify('################'),
42
-            'identitycard_image' => UploadedFile::fake()->image(Str::random() . '.jpg'),
42
+            'identitycard_image' => UploadedFile::fake()->image(Str::random().'.jpg'),
43 43
             'location_latitude' => $this->faker->latitude,
44 44
             'location_longitude' => $this->faker->longitude,
45 45
         ];
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -23,43 +23,43 @@  discard block
 block discarded – undo
23 23
 
24 24
 Route::view('/', 'welcome');
25 25
 
26
-Route::middleware('auth:web', 'verified', 'user_is_active')->name('admin.')->group(function () {
26
+Route::middleware('auth:web', 'verified', 'user_is_active')->name('admin.')->group(function() {
27 27
     Route::get('/dashboard', DashboardController::class)->name('dashboard');
28 28
 
29
-    Route::prefix('/order')->name('order.')->group(function () {
30
-        Route::post('/datatable', [OrderController::class, 'datatable'])->name('datatable');
29
+    Route::prefix('/order')->name('order.')->group(function() {
30
+        Route::post('/datatable', [ OrderController::class, 'datatable' ])->name('datatable');
31 31
     });
32 32
 
33
-    Route::prefix('/user')->name('user.')->group(function () {
34
-        Route::post('/datatable', [UserController::class, 'datatable'])->name('datatable');
35
-        Route::delete('/multiple', [UserController::class, 'destroyMultiple'])->name('destroy-multiple');
33
+    Route::prefix('/user')->name('user.')->group(function() {
34
+        Route::post('/datatable', [ UserController::class, 'datatable' ])->name('datatable');
35
+        Route::delete('/multiple', [ UserController::class, 'destroyMultiple' ])->name('destroy-multiple');
36 36
     });
37 37
 
38
-    Route::prefix('/branch')->name('branch.')->group(function () {
39
-        Route::post('/datatable', [BranchController::class, 'datatable'])->name('datatable');
40
-        Route::delete('/multiple', [BranchController::class, 'destroyMultiple'])->name('destroy-multiple');
38
+    Route::prefix('/branch')->name('branch.')->group(function() {
39
+        Route::post('/datatable', [ BranchController::class, 'datatable' ])->name('datatable');
40
+        Route::delete('/multiple', [ BranchController::class, 'destroyMultiple' ])->name('destroy-multiple');
41 41
     });
42 42
 
43
-    Route::prefix('/customer')->name('customer.')->group(function () {
44
-        Route::post('/datatable', [CustomerController::class, 'datatable'])->name('datatable');
45
-        Route::delete('/multiple', [CustomerController::class, 'destroyMultiple'])->name('destroy-multiple');
46
-        Route::delete('/{customer}/identitycard_image', [CustomerController::class, 'destroyIdentitycardImage'])->name('destroy-identitycard_image');
43
+    Route::prefix('/customer')->name('customer.')->group(function() {
44
+        Route::post('/datatable', [ CustomerController::class, 'datatable' ])->name('datatable');
45
+        Route::delete('/multiple', [ CustomerController::class, 'destroyMultiple' ])->name('destroy-multiple');
46
+        Route::delete('/{customer}/identitycard_image', [ CustomerController::class, 'destroyIdentitycardImage' ])->name('destroy-identitycard_image');
47 47
     });
48 48
 
49
-    Route::prefix('/denomination')->name('denomination.')->group(function () {
50
-        Route::post('/datatable', [DenominationController::class, 'datatable'])->name('datatable');
51
-        Route::delete('/multiple', [DenominationController::class, 'destroyMultiple'])->name('destroy-multiple');
52
-        Route::delete('/{denomination}/image', [DenominationController::class, 'destroyImage'])->name('destroy-image');
49
+    Route::prefix('/denomination')->name('denomination.')->group(function() {
50
+        Route::post('/datatable', [ DenominationController::class, 'datatable' ])->name('datatable');
51
+        Route::delete('/multiple', [ DenominationController::class, 'destroyMultiple' ])->name('destroy-multiple');
52
+        Route::delete('/{denomination}/image', [ DenominationController::class, 'destroyImage' ])->name('destroy-image');
53 53
     });
54 54
 
55
-    Route::prefix('/role')->name('role.')->middleware('role:admin')->group(function () {
56
-        Route::post('/datatable', [RoleController::class, 'datatable'])->name('datatable');
57
-        Route::delete('/multiple', [RoleController::class, 'destroyMultiple'])->name('destroy-multiple');
55
+    Route::prefix('/role')->name('role.')->middleware('role:admin')->group(function() {
56
+        Route::post('/datatable', [ RoleController::class, 'datatable' ])->name('datatable');
57
+        Route::delete('/multiple', [ RoleController::class, 'destroyMultiple' ])->name('destroy-multiple');
58 58
     });
59 59
 
60
-    Route::prefix('/configuration')->name('configuration.')->group(function () {
61
-        Route::post('/datatable', [ConfigurationController::class, 'datatable'])->name('datatable');
62
-        Route::delete('/multiple', [ConfigurationController::class, 'destroyMultiple'])->middleware('role:admin')->name('destroy-multiple');
60
+    Route::prefix('/configuration')->name('configuration.')->group(function() {
61
+        Route::post('/datatable', [ ConfigurationController::class, 'datatable' ])->name('datatable');
62
+        Route::delete('/multiple', [ ConfigurationController::class, 'destroyMultiple' ])->middleware('role:admin')->name('destroy-multiple');
63 63
     });
64 64
 
65 65
     Route::resource('/order', OrderController::class)->except('show');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     Route::resource('/branch', BranchController::class)->except('show');
68 68
     Route::resource('/customer', CustomerController::class)->except('show');
69 69
     Route::resource('/denomination', DenominationController::class)->except('show');
70
-    Route::resource('/role', RoleController::class, ['middleware' => 'role:admin'])->except('show');
70
+    Route::resource('/role', RoleController::class, [ 'middleware' => 'role:admin' ])->except('show');
71 71
     Route::resource('/configuration', ConfigurationController::class)->except('show');
72 72
 });
73 73
 
Please login to merge, or discard this patch.