@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $this->reportable(function (Throwable $e) { |
|
37 | + $this->reportable(function(Throwable $e) { |
|
38 | 38 | // |
39 | 39 | }); |
40 | 40 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected function redirectTo($request) |
16 | 16 | { |
17 | - if (! $request->expectsJson()) { |
|
17 | + if(!$request->expectsJson()) { |
|
18 | 18 | return route('login.index'); |
19 | 19 | } |
20 | 20 | } |
@@ -21,8 +21,8 @@ |
||
21 | 21 | { |
22 | 22 | $guards = empty($guards) ? [null] : $guards; |
23 | 23 | |
24 | - foreach ($guards as $guard) { |
|
25 | - if (Auth::guard($guard)->check()) { |
|
24 | + foreach($guards as $guard) { |
|
25 | + if(Auth::guard($guard)->check()) { |
|
26 | 26 | return redirect(RouteServiceProvider::HOME); |
27 | 27 | } |
28 | 28 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->configureRateLimiting(); |
21 | 21 | |
22 | - $this->routes(function () |
|
22 | + $this->routes(function() |
|
23 | 23 | { |
24 | 24 | // Basic Login and Logout Routes |
25 | 25 | Route::middleware('web') |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function configureRateLimiting() |
40 | 40 | { |
41 | - RateLimiter::for('api', function (Request $request) { |
|
41 | + RateLimiter::for('api', function(Request $request) { |
|
42 | 42 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); |
43 | 43 | }); |
44 | 44 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | // Log::channel('cust')->info('New Customer - '.$request->name.' created by '.Auth::user()->full_name); |
46 | 46 | |
47 | 47 | event(new NewCustomerCreated($newCust)); |
48 | - return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']); |
|
48 | + return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |