@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // Submit the new customer form |
34 | 34 | public function store(Request $request) |
35 | 35 | { |
36 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
36 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
37 | 37 | $this->authorize('hasAccess', 'Add Customer'); |
38 | 38 | |
39 | 39 | $request->validate([ |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ]); |
73 | 73 | |
74 | 74 | Log::notice('New Customer ID-'.$request->custID.' created by '.Auth::user()->full_name); |
75 | - return response()->json(['success' => true, 'cust_id' => $custData->cust_id ]); |
|
75 | + return response()->json(['success' => true, 'cust_id' => $custData->cust_id]); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | // Show the customer details |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $fileTypes = new CustomerFileTypesCollection(CustomerFileTypes::all()); |
92 | 92 | $parent = $custDetails->parent_id ? Customers::find($custDetails->parent_id)->name : null; |
93 | 93 | |
94 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
94 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
95 | 95 | return view('customer.details', [ |
96 | 96 | 'cust_id' => $custDetails->cust_id, |
97 | 97 | 'details' => $custDetails->toJson(), |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | // Update the customer details |
107 | 107 | public function update(Request $request, $id) |
108 | 108 | { |
109 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
109 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
110 | 110 | |
111 | 111 | $request->validate([ |
112 | 112 | 'name' => 'required', |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | // Link a site to a parent site |
136 | 136 | public function linkParent(Request $request) |
137 | 137 | { |
138 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
138 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
139 | 139 | |
140 | 140 | $request->validate([ |
141 | 141 | 'parent_id' => 'required|numeric|exists:customers,cust_id', |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | $parentsParent = Customers::find($request->parent_id); |
146 | 146 | |
147 | - if ($parentsParent->parent_id) |
|
147 | + if($parentsParent->parent_id) |
|
148 | 148 | { |
149 | 149 | $request->parent_id = $parentsParent->parent_id; |
150 | 150 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | public function removeParent($id) |
162 | 162 | { |
163 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
163 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
164 | 164 | Customers::find($id)->update(['parent_id' => null]); |
165 | 165 | Log::info('Parent Customer ID was removed for Customer ID '.$id.' by '.Auth::user()->full_name); |
166 | 166 | } |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | // Deactivate a customer - note this will not remove it from the database, but make it inaccessable |
169 | 169 | public function destroy($id) |
170 | 170 | { |
171 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
171 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
172 | 172 | $this->authorize('hasAccess', 'Deactivate Customer'); |
173 | 173 | |
174 | 174 | // Remove the customer from any users favorites |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | // Get the possible system types that can be assigned to the customer |
25 | 25 | public function index() |
26 | 26 | { |
27 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
27 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
28 | 28 | $sysList = new CategoriesCollection(SystemCategories::with('SystemTypes')->with('SystemTypes.SystemDataFields.SystemDataFieldTypes')->get()); |
29 | 29 | |
30 | 30 | return $sysList; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | // Store a new system for the customer |
34 | 34 | public function store(Request $request) |
35 | 35 | { |
36 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
36 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
37 | 37 | |
38 | 38 | $request->validate([ |
39 | 39 | 'cust_id' => 'required', |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // Get the list of systems attached to the customer |
77 | 77 | public function show($id) |
78 | 78 | { |
79 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
79 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
80 | 80 | |
81 | 81 | $sysList = CustomerSystems::where('cust_id', $id) |
82 | 82 | ->with('SystemTypes') |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | // Update the customers system data |
106 | 106 | public function update(Request $request, $id) |
107 | 107 | { |
108 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
108 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
109 | 109 | |
110 | 110 | $request->validate([ |
111 | 111 | 'cust_id' => 'required', |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | foreach($fields as $data) |
126 | 126 | { |
127 | - $fieldName = 'field_' . $data->field_id; |
|
127 | + $fieldName = 'field_'.$data->field_id; |
|
128 | 128 | if(isset($request->$fieldName)) |
129 | 129 | { |
130 | 130 | Log::debug($request->$fieldName); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | // Delete a system attached to a customer |
143 | 143 | public function destroy($id) |
144 | 144 | { |
145 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
145 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
146 | 146 | |
147 | 147 | // return response('deleted '.$id); |
148 | 148 | $system = CustomerSystems::find($id); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // Store a new customer file |
24 | 24 | public function store(Request $request) |
25 | 25 | { |
26 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
26 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
27 | 27 | // Validate the form |
28 | 28 | $request->validate([ |
29 | 29 | 'cust_id' => 'required', |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | { |
42 | 42 | // Determine if the note should go to the customer, or its parent |
43 | 43 | $details = Customers::find($request->cust_id); |
44 | - if ($details->parent_id && $request->shared == 'true') |
|
44 | + if($details->parent_id && $request->shared == 'true') |
|
45 | 45 | { |
46 | 46 | $request->cust_id = $details->parent_id; |
47 | 47 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | // Get the files for the customer |
91 | 91 | public function show($id) |
92 | 92 | { |
93 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
93 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
94 | 94 | |
95 | 95 | $files = CustomerFiles::where('cust_id', $id) |
96 | 96 | ->with('Files') |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | // Determine if there is a parent site with shared files |
102 | 102 | $parent = Customers::find($id)->parent_id; |
103 | - if ($parent) { |
|
103 | + if($parent) { |
|
104 | 104 | $parentList = Customerfiles::where('cust_id', $parent) |
105 | 105 | ->where('shared', 1) |
106 | 106 | ->with('Files') |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | // Update the information of the file, but not the file itself |
118 | 118 | public function update(Request $request, $id) |
119 | 119 | { |
120 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
120 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
121 | 121 | |
122 | 122 | $request->validate([ |
123 | 123 | 'cust_id' => 'required', |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | ]); |
127 | 127 | |
128 | 128 | $details = Customers::find($request->cust_id); |
129 | - if ($details->parent_id && $request->shared == 1) { |
|
129 | + if($details->parent_id && $request->shared == 1) { |
|
130 | 130 | $request->cust_id = $details->parent_id; |
131 | 131 | } |
132 | 132 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $fileID = $data->file_id; |
150 | 150 | $data->delete(); |
151 | 151 | |
152 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
152 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
153 | 153 | Log::info('File Deleted For Customer ID-'.$data->custID.' by '.Auth::user()->full_name.'. File ID - '.$id); |
154 | 154 | |
155 | 155 | // Delete from system if no longer in use |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | // Store a new customer note |
22 | 22 | public function store(Request $request) |
23 | 23 | { |
24 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
24 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
25 | 25 | |
26 | 26 | $request->validate([ |
27 | 27 | 'cust_id' => 'required|numeric', |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | // Determine if the note should go to the customer, or its parent |
33 | 33 | $details = Customers::find($request->cust_id); |
34 | - if ($details->parent_id && $request->shared == 'true') { |
|
34 | + if($details->parent_id && $request->shared == 'true') { |
|
35 | 35 | $request->cust_id = $details->parent_id; |
36 | 36 | } |
37 | 37 | |
@@ -55,20 +55,20 @@ discard block |
||
55 | 55 | |
56 | 56 | // Determine if there is a parent site with shared notes |
57 | 57 | $parent = Customers::find($id)->parent_id; |
58 | - if ($parent) { |
|
58 | + if($parent) { |
|
59 | 59 | $parentList = CustomerNotes::where('cust_id', $parent)->where('shared', 1)->orderBy('urgent', 'desc')->get(); |
60 | 60 | |
61 | 61 | $notes = $notes->merge($parentList); |
62 | 62 | } |
63 | 63 | |
64 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
64 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
65 | 65 | return $notes; |
66 | 66 | } |
67 | 67 | |
68 | 68 | // Update a customer note |
69 | 69 | public function update(Request $request, $id) |
70 | 70 | { |
71 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
71 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
72 | 72 | |
73 | 73 | $request->validate([ |
74 | 74 | 'cust_id' => 'required', |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ]); |
78 | 78 | |
79 | 79 | $details = Customers::find($request->cust_id); |
80 | - if ($details->parent_id && $request->shared == 'true') { |
|
80 | + if($details->parent_id && $request->shared == 'true') { |
|
81 | 81 | $request->cust_id = $details->parent_id; |
82 | 82 | } |
83 | 83 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | CustomerNotes::find($id)->delete(); |
100 | 100 | |
101 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
101 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
102 | 102 | Log::notice('Customer Note ID - '.$id.' deleted by '.Auth::user()->full_name); |
103 | 103 | return response()->json(['success' => true]); |
104 | 104 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | // Search for a customer |
35 | 35 | public function search(Request $request) |
36 | 36 | { |
37 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
37 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
38 | 38 | |
39 | 39 | $request->validate([ |
40 | 40 | 'sortField' => 'required', |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | // Search the name, dba name, and cust id columns |
50 | 50 | ->where(function($query) use ($request) |
51 | 51 | { |
52 | - $query->where('name', 'like', '%' . $request->name . '%') |
|
53 | - ->orWhere('cust_id', 'like', '%' . $request->name . '%') |
|
54 | - ->orWhere('dba_name', 'like', '%' . $request->name . '%'); |
|
52 | + $query->where('name', 'like', '%'.$request->name.'%') |
|
53 | + ->orWhere('cust_id', 'like', '%'.$request->name.'%') |
|
54 | + ->orWhere('dba_name', 'like', '%'.$request->name.'%'); |
|
55 | 55 | }) |
56 | 56 | // Search the city column |
57 | - ->where('city', 'like', '%' . $request->city . '%') |
|
57 | + ->where('city', 'like', '%'.$request->city.'%') |
|
58 | 58 | // Include the customers systems |
59 | 59 | ->with('CustomerSystems.SystemTypes') |
60 | 60 | // If the system field is present - search for system type |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | // Check to see if a customer ID already exists |
80 | 80 | public function checkID($id) |
81 | 81 | { |
82 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
82 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
83 | 83 | $cust = Customers::find($id); |
84 | 84 | |
85 | 85 | if($cust === null) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // Store a new customer contact |
24 | 24 | public function store(Request $request) |
25 | 25 | { |
26 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
26 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
27 | 27 | |
28 | 28 | $request->validate([ |
29 | 29 | 'cust_id' => 'required', |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | // Determine if there is a parent site with shared contacts |
72 | 72 | $parent = Customers::find($id)->parent_id; |
73 | - if ($parent) |
|
73 | + if($parent) |
|
74 | 74 | { |
75 | 75 | $parentList = CustomerContacts::where('cust_id', $parent) |
76 | 76 | ->where('shared', 1) |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | // Update an existing Customer Contact |
122 | 122 | public function update(Request $request, $id) |
123 | 123 | { |
124 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
124 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
125 | 125 | |
126 | 126 | $request->validate([ |
127 | 127 | 'cust_id' => 'required', |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | // Update the primary contact information |
132 | 132 | $details = Customers::find($request->cust_id); |
133 | - if ($details->parent_id && $request->shared == 'true') { |
|
133 | + if($details->parent_id && $request->shared == 'true') { |
|
134 | 134 | $request->cust_id = $details->parent_id; |
135 | 135 | } |
136 | 136 |
@@ -25,26 +25,26 @@ |
||
25 | 25 | // Validate the hash token |
26 | 26 | $user = UserInitialize::where('token', $hash)->get(); |
27 | 27 | |
28 | - if ($user->isEmpty()) { |
|
29 | - Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to access invalid initialize hash - ' . $hash); |
|
28 | + if($user->isEmpty()) { |
|
29 | + Log::warning('Visitor at IP Address '.\Request::ip().' tried to access invalid initialize hash - '.$hash); |
|
30 | 30 | return abort(404); |
31 | 31 | } |
32 | 32 | |
33 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address .'.\Request::ip()); |
|
34 | - Log::debug('Link Hash -' . $hash); |
|
33 | + Log::debug('Route '.Route::currentRouteName().' visited by IP Address .'.\Request::ip()); |
|
34 | + Log::debug('Link Hash -'.$hash); |
|
35 | 35 | return view('account.initializeUser', ['hash' => $hash]); |
36 | 36 | } |
37 | 37 | |
38 | 38 | // Submit the initialize user form |
39 | 39 | public function submitInitializeUser(Request $request, $hash) |
40 | 40 | { |
41 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address -' . \Request::ip().'. Submitted Data - ', $request->toArray()); |
|
41 | + Log::debug('Route '.Route::currentRouteName().' visited by IP Address -'.\Request::ip().'. Submitted Data - ', $request->toArray()); |
|
42 | 42 | Log::debug('Initialize Data - ', $request->toArray()); |
43 | 43 | |
44 | 44 | // Verify that the link matches the assigned email address |
45 | 45 | $valid = UserInitialize::where('token', $hash)->first(); |
46 | - if (empty($valid)) { |
|
47 | - Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to submit an invalid User Initialization link - ' . $hash); |
|
46 | + if(empty($valid)) { |
|
47 | + Log::warning('Visitor at IP Address '.\Request::ip().' tried to submit an invalid User Initialization link - '.$hash); |
|
48 | 48 | return abort(404); |
49 | 49 | } |
50 | 50 |
@@ -25,7 +25,8 @@ discard block |
||
25 | 25 | // Validate the hash token |
26 | 26 | $user = UserInitialize::where('token', $hash)->get(); |
27 | 27 | |
28 | - if ($user->isEmpty()) { |
|
28 | + if ($user->isEmpty()) |
|
29 | + { |
|
29 | 30 | Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to access invalid initialize hash - ' . $hash); |
30 | 31 | return abort(404); |
31 | 32 | } |
@@ -43,7 +44,8 @@ discard block |
||
43 | 44 | |
44 | 45 | // Verify that the link matches the assigned email address |
45 | 46 | $valid = UserInitialize::where('token', $hash)->first(); |
46 | - if (empty($valid)) { |
|
47 | + if (empty($valid)) |
|
48 | + { |
|
47 | 49 | Log::warning('Visitor at IP Address ' . \Request::ip() . ' tried to submit an invalid User Initialization link - ' . $hash); |
48 | 50 | return abort(404); |
49 | 51 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create('user_role_permission_types', function (Blueprint $table) { |
|
17 | + Schema::create('user_role_permission_types', function(Blueprint $table) { |
|
18 | 18 | $table->increments('perm_type_id'); |
19 | 19 | $table->text('description'); |
20 | 20 | $table->timestamps(); |
@@ -22,17 +22,17 @@ discard block |
||
22 | 22 | |
23 | 23 | // Insert default roles permission types |
24 | 24 | DB::table('user_role_permission_types')->insert([ |
25 | - ['perm_type_id' => 1, 'description' => 'Manage Users', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
26 | - ['perm_type_id' => 2, 'description' => 'Manage User Roles', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
27 | - ['perm_type_id' => 3, 'description' => 'Run Reports', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
28 | - ['perm_type_id' => 4, 'description' => 'Add Customer', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
29 | - ['perm_type_id' => 5, 'description' => 'Manage Customers', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
30 | - ['perm_type_id' => 6, 'description' => 'Deactivate Customer', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
31 | - ['perm_type_id' => 7, 'description' => 'Use File Links', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
32 | - ['perm_type_id' => 8, 'description' => 'Create Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
33 | - ['perm_type_id' => 9, 'description' => 'Edit Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
34 | - ['perm_type_id' => 10, 'description' => 'Delete Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
35 | - ['perm_type_id' => 11, 'description' => 'Manage Equipment', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
25 | + ['perm_type_id' => 1, 'description' => 'Manage Users', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
26 | + ['perm_type_id' => 2, 'description' => 'Manage User Roles', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
27 | + ['perm_type_id' => 3, 'description' => 'Run Reports', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
28 | + ['perm_type_id' => 4, 'description' => 'Add Customer', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
29 | + ['perm_type_id' => 5, 'description' => 'Manage Customers', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
30 | + ['perm_type_id' => 6, 'description' => 'Deactivate Customer', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
31 | + ['perm_type_id' => 7, 'description' => 'Use File Links', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
32 | + ['perm_type_id' => 8, 'description' => 'Create Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
33 | + ['perm_type_id' => 9, 'description' => 'Edit Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
34 | + ['perm_type_id' => 10, 'description' => 'Delete Tech Tip', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
35 | + ['perm_type_id' => 11, 'description' => 'Manage Equipment', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now()], |
|
36 | 36 | ]); |
37 | 37 | } |
38 | 38 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use App\UserRolePermissions; |
6 | 6 | |
7 | -$factory->define(UserRolePermissions::class, function () { |
|
7 | +$factory->define(UserRolePermissions::class, function() { |
|
8 | 8 | return [ |
9 | 9 | 'role_id' => factory(App\UserRoleType::class)->create()->role_id, |
10 | 10 | 'perm_type_id' => factory(App\UserRolePermissionTypes::class)->create()->perm_type_id, |