@@ -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 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | | |
17 | 17 | */ |
18 | 18 | |
19 | -if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) { |
|
19 | +if(file_exists(__DIR__.'/../storage/framework/maintenance.php')) { |
|
20 | 20 | require __DIR__.'/../storage/framework/maintenance.php'; |
21 | 21 | } |
22 | 22 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function rules() |
21 | 21 | { |
22 | 22 | return [ |
23 | - 'email' => 'required|exists:users', // Must be a valid email address |
|
23 | + 'email' => 'required|exists:users', // Must be a valid email address |
|
24 | 24 | 'password' => 'required|string|min:6|confirmed', |
25 | 25 | ]; |
26 | 26 | } |
@@ -22,12 +22,12 @@ |
||
22 | 22 | public function rules() |
23 | 23 | { |
24 | 24 | return [ |
25 | - 'cat_id' => 'required|exists:equipment_categories,name', // Must contain a valid Category ID |
|
25 | + 'cat_id' => 'required|exists:equipment_categories,name', // Must contain a valid Category ID |
|
26 | 26 | 'name' => [ |
27 | 27 | 'required', |
28 | 28 | 'string', |
29 | - 'regex:/^[a-zA-Z0-9_ ]*$/', // No special characters are allowed |
|
30 | - 'unique:equipment_categories', // Equipment with this name must not already exist |
|
29 | + 'regex:/^[a-zA-Z0-9_ ]*$/', // No special characters are allowed |
|
30 | + 'unique:equipment_categories', // Equipment with this name must not already exist |
|
31 | 31 | ], |
32 | 32 | 'data_fields' => 'required|array', |
33 | 33 | ]; |
@@ -25,8 +25,8 @@ |
||
25 | 25 | 'name' => [ |
26 | 26 | 'required', |
27 | 27 | 'string', |
28 | - 'regex:/^[a-zA-Z0-9_ ]*$/', // No special characters are allowed |
|
29 | - 'unique:equipment_categories', // Category name must not already exist |
|
28 | + 'regex:/^[a-zA-Z0-9_ ]*$/', // No special characters are allowed |
|
29 | + 'unique:equipment_categories', // Category name must not already exist |
|
30 | 30 | ] |
31 | 31 | ]; |
32 | 32 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | Log::channel('cust')->info('New Customer - '.$request->name.' created by '.Auth::user()->full_name); |
49 | 49 | |
50 | - return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']); |
|
50 | + return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | // ->with('ParentContact.CustomerContactPhone.PhoneNumberType') |
73 | 73 | ->with('CustomerNote') |
74 | 74 | ->firstOrFail(); |
75 | - $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id) |
|
75 | + $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id) |
|
76 | 76 | ->where('cust_id', $customer->cust_id) |
77 | 77 | ->count(); |
78 | 78 | |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | 'details' => $customer, |
81 | 81 | 'phone_types' => PhoneNumberType::all(), |
82 | 82 | 'user_functions' => [ |
83 | - 'fav' => $isFav, // Customer is bookmarked by the user |
|
84 | - 'edit' => Auth::user()->can('update', $customer), // User is allowed to edit the customers basic details |
|
83 | + 'fav' => $isFav, // Customer is bookmarked by the user |
|
84 | + 'edit' => Auth::user()->can('update', $customer), // User is allowed to edit the customers basic details |
|
85 | 85 | ], |
86 | 86 | ]); |
87 | 87 | } |
@@ -27,6 +27,6 @@ |
||
27 | 27 | UserCustomerBookmark::where('user_id', Auth::user()->user_id)->where('cust_id', $request->cust_id)->first()->delete(); |
28 | 28 | } |
29 | 29 | |
30 | - return response()->noContent(); //->json(['success' => true]); |
|
30 | + return response()->noContent(); //->json(['success' => true]); |
|
31 | 31 | } |
32 | 32 | } |