@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\CustomerSystems; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(CustomerSystems::class, function (Faker $faker) { |
|
8 | +$factory->define(CustomerSystems::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | // |
11 | 11 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\SystemCategories; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(SystemCategories::class, function (Faker $faker) { |
|
8 | +$factory->define(SystemCategories::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | // |
11 | 11 | 'name' => $faker->unique()->text(15) |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\SystemDataFieldTypes; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(SystemDataFieldTypes::class, function (Faker $faker) { |
|
8 | +$factory->define(SystemDataFieldTypes::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | // |
11 | 11 | 'name' => $faker->words(), |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use App\CustomerSystemData; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(CustomerSystemData::class, function (Faker $faker) { |
|
8 | +$factory->define(CustomerSystemData::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | // |
11 | 11 | 'cust_sys_id' => factory(App\CustomerSystems::class)->create()->cust_sys_id, |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use App\SystemDataFields; |
7 | 7 | use Faker\Generator as Faker; |
8 | 8 | |
9 | -$factory->define(SystemDataFields::class, function (Faker $faker) { |
|
9 | +$factory->define(SystemDataFields::class, function(Faker $faker) { |
|
10 | 10 | return [ |
11 | 11 | // |
12 | 12 | 'sys_id' => factory(App\SystemTypes::class)->create()->sys_id, |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | // Added the ability to set an expiration date for user passwords - will force them to change after this expires |
86 | 86 | private function addPasswordExpiresColumn() |
87 | 87 | { |
88 | - if (!Schema::hasColumn('users', 'password_expires')) { |
|
89 | - Schema::table('users', function (Blueprint $table) { |
|
88 | + if(!Schema::hasColumn('users', 'password_expires')) { |
|
89 | + Schema::table('users', function(Blueprint $table) { |
|
90 | 90 | $table->timestamp('password_expires') |
91 | 91 | ->nullable() |
92 | 92 | ->after('active'); |
@@ -97,18 +97,18 @@ discard block |
||
97 | 97 | // Add the is installer column to the users table |
98 | 98 | private function addIsInstallerToUsers() |
99 | 99 | { |
100 | - if (!Schema::hasColumn('users', 'is_installer')) { |
|
101 | - Schema::table('users', function (Blueprint $table) { |
|
100 | + if(!Schema::hasColumn('users', 'is_installer')) { |
|
101 | + Schema::table('users', function(Blueprint $table) { |
|
102 | 102 | $table->boolean('is_installer')->default(0)->after('active'); |
103 | 103 | }); |
104 | 104 | |
105 | 105 | // TODO - Clean this up, it does not work |
106 | 106 | // Migrate user roles from the 'user roles' table to the new 'user permissions' table |
107 | - if (Schema::hasTable('user_permissions') && (UserPermissions::all()->isEmpty())) { |
|
107 | + if(Schema::hasTable('user_permissions') && (UserPermissions::all()->isEmpty())) { |
|
108 | 108 | $userRoles = DB::select('SELECT * FROM `user_role` LEFT JOIN `roles` ON `user_role`.`role_id` = `roles`.`role_id`'); |
109 | 109 | |
110 | - foreach ($userRoles as $user) { |
|
111 | - if ($user->name === 'Installer') { |
|
110 | + foreach($userRoles as $user) { |
|
111 | + if($user->name === 'Installer') { |
|
112 | 112 | User::find($user->user_id)->update( |
113 | 113 | [ |
114 | 114 | 'is_installer' => 1 |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 'modify_category' => 1 |
130 | 130 | ] |
131 | 131 | ); |
132 | - } else if ($user->name === 'Admin') { |
|
132 | + } else if($user->name === 'Admin') { |
|
133 | 133 | UserPermissions::create( |
134 | 134 | [ |
135 | 135 | 'user_id' => $user->user_id, |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | 'modify_category' => 1 |
146 | 146 | ] |
147 | 147 | ); |
148 | - } else if ($user->name === 'Report') { |
|
148 | + } else if($user->name === 'Report') { |
|
149 | 149 | UserPermissions::create( |
150 | 150 | [ |
151 | 151 | 'user_id' => $user->user_id, |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | // Added a 'hidden' attribute to system customer data types to allow passwords to not be viewed unless clicked or focus |
187 | 187 | private function addHiddenColumn() |
188 | 188 | { |
189 | - if (!Schema::hasColumn('system_data_field_types', 'hidden')) { |
|
190 | - Schema::table('system_cust_data_types', function (Blueprint $table) { |
|
189 | + if(!Schema::hasColumn('system_data_field_types', 'hidden')) { |
|
190 | + Schema::table('system_cust_data_types', function(Blueprint $table) { |
|
191 | 191 | $table->boolean('hidden') |
192 | 192 | ->default(0) |
193 | 193 | ->after('name'); |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | // Update the File links table - add cust_id and note column |
199 | 199 | private function addColumnsToFileLinksTable() |
200 | 200 | { |
201 | - if (!Schema::hasColumn('file_links', 'cust_id')) { |
|
202 | - Schema::table('file_links', function (Blueprint $table) { |
|
201 | + if(!Schema::hasColumn('file_links', 'cust_id')) { |
|
202 | + Schema::table('file_links', function(Blueprint $table) { |
|
203 | 203 | $table->integer('cust_id') |
204 | 204 | ->unsigned() |
205 | 205 | ->nullable() |
@@ -207,15 +207,15 @@ discard block |
||
207 | 207 | $table->foreign('cust_id')->references('cust_id')->on('customers')->onUpdate('cascade')->onDelete('cascade'); |
208 | 208 | }); |
209 | 209 | } |
210 | - if (!Schema::hasColumn('file_links', 'note')) { |
|
211 | - Schema::table('file_links', function (Blueprint $table) { |
|
210 | + if(!Schema::hasColumn('file_links', 'note')) { |
|
211 | + Schema::table('file_links', function(Blueprint $table) { |
|
212 | 212 | $table->longText('note') |
213 | 213 | ->nullable() |
214 | 214 | ->after('link_name'); |
215 | 215 | }); |
216 | 216 | // Migrate the instructions from the old table to the new column |
217 | 217 | $instructions = DB::select('SELECT * FROM `file_link_instructions`'); |
218 | - foreach ($instructions as $ins) { |
|
218 | + foreach($instructions as $ins) { |
|
219 | 219 | FileLinks::find($ins->link_id)->update([ |
220 | 220 | 'note' => $ins->instruction |
221 | 221 | ]); |
@@ -226,15 +226,15 @@ discard block |
||
226 | 226 | // Add Notes column to the file links files table |
227 | 227 | private function addNotesColumnToFileLinkFiles() |
228 | 228 | { |
229 | - if (!Schema::hasColumn('file_link_files', 'note')) { |
|
230 | - Schema::table('file_link_files', function (Blueprint $table) { |
|
229 | + if(!Schema::hasColumn('file_link_files', 'note')) { |
|
230 | + Schema::table('file_link_files', function(Blueprint $table) { |
|
231 | 231 | $table->longText('note') |
232 | 232 | ->nullable() |
233 | 233 | ->after('upload'); |
234 | 234 | }); |
235 | 235 | // Migrate the existing notes to the new table |
236 | 236 | $notes = DB::select('SELECT * FROM `file_link_notes`'); |
237 | - foreach ($notes as $note) { |
|
237 | + foreach($notes as $note) { |
|
238 | 238 | FileLinkFiles::where('file_id', $note->file_id)->update([ |
239 | 239 | 'note' => $note->note |
240 | 240 | ]); |
@@ -245,14 +245,14 @@ discard block |
||
245 | 245 | // Add the documentation column to the tech tips table |
246 | 246 | private function addDocumentationColumnToTechTips() |
247 | 247 | { |
248 | - if (!Schema::hasColumn('tech_tips', 'documentation')) { |
|
249 | - Schema::table('tech_tips', function (Blueprint $table) { |
|
248 | + if(!Schema::hasColumn('tech_tips', 'documentation')) { |
|
249 | + Schema::table('tech_tips', function(Blueprint $table) { |
|
250 | 250 | $table->boolean('documentation')->default(0)->nullable()->after('public'); |
251 | 251 | }); |
252 | 252 | |
253 | 253 | // Move all of the system files over to the tech tips table |
254 | 254 | $sysFiles = DB::select('SELECT * FROM `system_files`'); |
255 | - foreach ($sysFiles as $sysFile) { |
|
255 | + foreach($sysFiles as $sysFile) { |
|
256 | 256 | $newTip = TechTips::create([ |
257 | 257 | 'user_id' => $sysFile->user_id, |
258 | 258 | 'public' => 0, |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | // Remove the active column from the customers table |
289 | 289 | private function removeActiveFromCustomers() |
290 | 290 | { |
291 | - if (Schema::hasColumn('customers', 'active')) |
|
291 | + if(Schema::hasColumn('customers', 'active')) |
|
292 | 292 | { |
293 | 293 | // Migrate the existing disabled customers first |
294 | 294 | $deactiveatedCustomers = Customers::where('active', 0); |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | Customers::find($cust->cust_id)->delete(); |
299 | 299 | } |
300 | 300 | |
301 | - Schema::table('customers', function (Blueprint $table) { |
|
301 | + Schema::table('customers', function(Blueprint $table) { |
|
302 | 302 | $table->dropColumn('active'); |
303 | 303 | }); |
304 | 304 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | { |
310 | 310 | if(Schema::hasTable('user_role')) |
311 | 311 | { |
312 | - Schema::table('user_role', function (Blueprint $table) { |
|
312 | + Schema::table('user_role', function(Blueprint $table) { |
|
313 | 313 | $table->dropForeign(['user_id']); |
314 | 314 | $table->dropForeign(['role_id']); |
315 | 315 | }); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | if(Schema::hasTable('file_link_instructions')) |
325 | 325 | { |
326 | 326 | // Remove the foreign key to allow for dropping the table |
327 | - Schema::table('file_link_instructions', function (Blueprint $table) { |
|
327 | + Schema::table('file_link_instructions', function(Blueprint $table) { |
|
328 | 328 | $table->dropForeign(['link_id']); |
329 | 329 | }); |
330 | 330 | Schema::dropIfExists('file_link_instructions'); |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | { |
337 | 337 | if(Schema::hasTable('file_link_notes')) |
338 | 338 | { |
339 | - Schema::table('file_link_notes', function (Blueprint $table) { |
|
339 | + Schema::table('file_link_notes', function(Blueprint $table) { |
|
340 | 340 | $table->dropForeign(['link_id']); |
341 | 341 | $table->dropForeign(['file_id']); |
342 | 342 | }); |
@@ -347,8 +347,8 @@ discard block |
||
347 | 347 | // Remove the system files and system file types table |
348 | 348 | private function removeSystemFilesTables() |
349 | 349 | { |
350 | - if (Schema::hasTable('system_files')) { |
|
351 | - Schema::table('system_files', function (Blueprint $table) { |
|
350 | + if(Schema::hasTable('system_files')) { |
|
351 | + Schema::table('system_files', function(Blueprint $table) { |
|
352 | 352 | $table->dropForeign(['sys_id']); |
353 | 353 | $table->dropForeign(['type_id']); |
354 | 354 | $table->dropForeign(['file_id']); |
@@ -85,7 +85,8 @@ discard block |
||
85 | 85 | // Added the ability to set an expiration date for user passwords - will force them to change after this expires |
86 | 86 | private function addPasswordExpiresColumn() |
87 | 87 | { |
88 | - if (!Schema::hasColumn('users', 'password_expires')) { |
|
88 | + if (!Schema::hasColumn('users', 'password_expires')) |
|
89 | + { |
|
89 | 90 | Schema::table('users', function (Blueprint $table) { |
90 | 91 | $table->timestamp('password_expires') |
91 | 92 | ->nullable() |
@@ -97,18 +98,22 @@ discard block |
||
97 | 98 | // Add the is installer column to the users table |
98 | 99 | private function addIsInstallerToUsers() |
99 | 100 | { |
100 | - if (!Schema::hasColumn('users', 'is_installer')) { |
|
101 | + if (!Schema::hasColumn('users', 'is_installer')) |
|
102 | + { |
|
101 | 103 | Schema::table('users', function (Blueprint $table) { |
102 | 104 | $table->boolean('is_installer')->default(0)->after('active'); |
103 | 105 | }); |
104 | 106 | |
105 | 107 | // TODO - Clean this up, it does not work |
106 | 108 | // Migrate user roles from the 'user roles' table to the new 'user permissions' table |
107 | - if (Schema::hasTable('user_permissions') && (UserPermissions::all()->isEmpty())) { |
|
109 | + if (Schema::hasTable('user_permissions') && (UserPermissions::all()->isEmpty())) |
|
110 | + { |
|
108 | 111 | $userRoles = DB::select('SELECT * FROM `user_role` LEFT JOIN `roles` ON `user_role`.`role_id` = `roles`.`role_id`'); |
109 | 112 | |
110 | - foreach ($userRoles as $user) { |
|
111 | - if ($user->name === 'Installer') { |
|
113 | + foreach ($userRoles as $user) |
|
114 | + { |
|
115 | + if ($user->name === 'Installer') |
|
116 | + { |
|
112 | 117 | User::find($user->user_id)->update( |
113 | 118 | [ |
114 | 119 | 'is_installer' => 1 |
@@ -129,7 +134,9 @@ discard block |
||
129 | 134 | 'modify_category' => 1 |
130 | 135 | ] |
131 | 136 | ); |
132 | - } else if ($user->name === 'Admin') { |
|
137 | + } |
|
138 | + else if ($user->name === 'Admin') |
|
139 | + { |
|
133 | 140 | UserPermissions::create( |
134 | 141 | [ |
135 | 142 | 'user_id' => $user->user_id, |
@@ -145,7 +152,9 @@ discard block |
||
145 | 152 | 'modify_category' => 1 |
146 | 153 | ] |
147 | 154 | ); |
148 | - } else if ($user->name === 'Report') { |
|
155 | + } |
|
156 | + else if ($user->name === 'Report') |
|
157 | + { |
|
149 | 158 | UserPermissions::create( |
150 | 159 | [ |
151 | 160 | 'user_id' => $user->user_id, |
@@ -161,7 +170,9 @@ discard block |
||
161 | 170 | 'modify_category' => 0 |
162 | 171 | ] |
163 | 172 | ); |
164 | - } else { |
|
173 | + } |
|
174 | + else |
|
175 | + { |
|
165 | 176 | UserPermissions::create( |
166 | 177 | [ |
167 | 178 | 'user_id' => $user->user_id, |
@@ -186,7 +197,8 @@ discard block |
||
186 | 197 | // Added a 'hidden' attribute to system customer data types to allow passwords to not be viewed unless clicked or focus |
187 | 198 | private function addHiddenColumn() |
188 | 199 | { |
189 | - if (!Schema::hasColumn('system_data_field_types', 'hidden')) { |
|
200 | + if (!Schema::hasColumn('system_data_field_types', 'hidden')) |
|
201 | + { |
|
190 | 202 | Schema::table('system_cust_data_types', function (Blueprint $table) { |
191 | 203 | $table->boolean('hidden') |
192 | 204 | ->default(0) |
@@ -198,7 +210,8 @@ discard block |
||
198 | 210 | // Update the File links table - add cust_id and note column |
199 | 211 | private function addColumnsToFileLinksTable() |
200 | 212 | { |
201 | - if (!Schema::hasColumn('file_links', 'cust_id')) { |
|
213 | + if (!Schema::hasColumn('file_links', 'cust_id')) |
|
214 | + { |
|
202 | 215 | Schema::table('file_links', function (Blueprint $table) { |
203 | 216 | $table->integer('cust_id') |
204 | 217 | ->unsigned() |
@@ -207,7 +220,8 @@ discard block |
||
207 | 220 | $table->foreign('cust_id')->references('cust_id')->on('customers')->onUpdate('cascade')->onDelete('cascade'); |
208 | 221 | }); |
209 | 222 | } |
210 | - if (!Schema::hasColumn('file_links', 'note')) { |
|
223 | + if (!Schema::hasColumn('file_links', 'note')) |
|
224 | + { |
|
211 | 225 | Schema::table('file_links', function (Blueprint $table) { |
212 | 226 | $table->longText('note') |
213 | 227 | ->nullable() |
@@ -215,7 +229,8 @@ discard block |
||
215 | 229 | }); |
216 | 230 | // Migrate the instructions from the old table to the new column |
217 | 231 | $instructions = DB::select('SELECT * FROM `file_link_instructions`'); |
218 | - foreach ($instructions as $ins) { |
|
232 | + foreach ($instructions as $ins) |
|
233 | + { |
|
219 | 234 | FileLinks::find($ins->link_id)->update([ |
220 | 235 | 'note' => $ins->instruction |
221 | 236 | ]); |
@@ -226,7 +241,8 @@ discard block |
||
226 | 241 | // Add Notes column to the file links files table |
227 | 242 | private function addNotesColumnToFileLinkFiles() |
228 | 243 | { |
229 | - if (!Schema::hasColumn('file_link_files', 'note')) { |
|
244 | + if (!Schema::hasColumn('file_link_files', 'note')) |
|
245 | + { |
|
230 | 246 | Schema::table('file_link_files', function (Blueprint $table) { |
231 | 247 | $table->longText('note') |
232 | 248 | ->nullable() |
@@ -234,7 +250,8 @@ discard block |
||
234 | 250 | }); |
235 | 251 | // Migrate the existing notes to the new table |
236 | 252 | $notes = DB::select('SELECT * FROM `file_link_notes`'); |
237 | - foreach ($notes as $note) { |
|
253 | + foreach ($notes as $note) |
|
254 | + { |
|
238 | 255 | FileLinkFiles::where('file_id', $note->file_id)->update([ |
239 | 256 | 'note' => $note->note |
240 | 257 | ]); |
@@ -245,14 +262,16 @@ discard block |
||
245 | 262 | // Add the documentation column to the tech tips table |
246 | 263 | private function addDocumentationColumnToTechTips() |
247 | 264 | { |
248 | - if (!Schema::hasColumn('tech_tips', 'documentation')) { |
|
265 | + if (!Schema::hasColumn('tech_tips', 'documentation')) |
|
266 | + { |
|
249 | 267 | Schema::table('tech_tips', function (Blueprint $table) { |
250 | 268 | $table->boolean('documentation')->default(0)->nullable()->after('public'); |
251 | 269 | }); |
252 | 270 | |
253 | 271 | // Move all of the system files over to the tech tips table |
254 | 272 | $sysFiles = DB::select('SELECT * FROM `system_files`'); |
255 | - foreach ($sysFiles as $sysFile) { |
|
273 | + foreach ($sysFiles as $sysFile) |
|
274 | + { |
|
256 | 275 | $newTip = TechTips::create([ |
257 | 276 | 'user_id' => $sysFile->user_id, |
258 | 277 | 'public' => 0, |
@@ -347,7 +366,8 @@ discard block |
||
347 | 366 | // Remove the system files and system file types table |
348 | 367 | private function removeSystemFilesTables() |
349 | 368 | { |
350 | - if (Schema::hasTable('system_files')) { |
|
369 | + if (Schema::hasTable('system_files')) |
|
370 | + { |
|
351 | 371 | Schema::table('system_files', function (Blueprint $table) { |
352 | 372 | $table->dropForeign(['sys_id']); |
353 | 373 | $table->dropForeign(['type_id']); |
@@ -384,8 +404,7 @@ discard block |
||
384 | 404 | { |
385 | 405 | if(!Schema::hasColumn('customer_systems', 'deleted_at')) |
386 | 406 | { |
387 | - Schema::table('customer_systems', function(Blueprint $table) |
|
388 | - { |
|
407 | + Schema::table('customer_systems', function(Blueprint $table) { |
|
389 | 408 | $table->softDeletes()->after('sys_id'); |
390 | 409 | }); |
391 | 410 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | foreach($fields as $data) |
110 | 110 | { |
111 | - $fieldName = 'field_' . $data->field_id; |
|
111 | + $fieldName = 'field_'.$data->field_id; |
|
112 | 112 | if(isset($request->$fieldName)) |
113 | 113 | { |
114 | 114 | Log::debug($request->$fieldName); |
@@ -8,58 +8,58 @@ |
||
8 | 8 | /* |
9 | 9 | * Non user Routes |
10 | 10 | */ |
11 | -Route::get('/', 'Auth\LoginController@showLoginForm')->name('index'); |
|
12 | -Route::get('logout', 'Auth\LoginController@logout') ->name('logout'); |
|
11 | +Route::get('/', 'Auth\LoginController@showLoginForm')->name('index'); |
|
12 | +Route::get('logout', 'Auth\LoginController@logout') ->name('logout'); |
|
13 | 13 | Route::get('no-script', 'Controller@noScript') ->name('noscript'); |
14 | 14 | |
15 | 15 | |
16 | 16 | /* |
17 | 17 | * Download File Routes |
18 | 18 | */ |
19 | -Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
19 | +Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
20 | 20 | Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive'); |
21 | -Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
21 | +Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
22 | 22 | |
23 | 23 | |
24 | 24 | /* |
25 | 25 | * User Settings Routes |
26 | 26 | */ |
27 | -Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | -Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | -Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | -Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
27 | +Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | +Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | +Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | +Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
31 | 31 | Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword'); |
32 | 32 | |
33 | 33 | /* |
34 | 34 | * Basic Logged In Routes |
35 | 35 | */ |
36 | -Route::get('about', 'DashboardController@about')->name('about'); |
|
36 | +Route::get('about', 'DashboardController@about')->name('about'); |
|
37 | 37 | Route::get('dashboard', 'DashboardController@index')->name('dashboard'); |
38 | 38 | |
39 | 39 | /* |
40 | 40 | * File Link Routes |
41 | 41 | */ |
42 | -Route::prefix('links')->name('links.')->group(function () { |
|
42 | +Route::prefix('links')->name('links.')->group(function() { |
|
43 | 43 | // Resource controllers for base access |
44 | - Route::resource('data', 'FileLinks\FileLinksController'); |
|
45 | - Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
46 | - Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
44 | + Route::resource('data', 'FileLinks\FileLinksController'); |
|
45 | + Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
46 | + Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
47 | 47 | Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details') ->name('details'); |
48 | - Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
48 | + Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
49 | 49 | // File Link Files |
50 | - Route::resource('files', 'FileLinks\LinkFilesController'); |
|
50 | + Route::resource('files', 'FileLinks\LinkFilesController'); |
|
51 | 51 | // Index landing page |
52 | - Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
52 | + Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
53 | 53 | }); |
54 | 54 | |
55 | 55 | /* |
56 | 56 | * Guest File Link Routes |
57 | 57 | */ |
58 | 58 | Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles'); |
59 | -Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
60 | -Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
61 | -Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
62 | -Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
59 | +Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
60 | +Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
61 | +Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
62 | +Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
63 | 63 | |
64 | 64 | /* |
65 | 65 | * Customer Routes |