@@ -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 | 'name' => $faker->unique()->text(15) |
| 11 | 11 | ]; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\CustomerNotes; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(CustomerNotes::class, function (Faker $faker) { |
|
| 8 | +$factory->define(CustomerNotes::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'cust_id' => factory(App\Customers::class)->create()->cust_id, |
| 11 | 11 | 'user_id' => factory(App\User::class)->create()->user_id, |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\TechTipComments; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(TechTipComments::class, function (Faker $faker) { |
|
| 8 | +$factory->define(TechTipComments::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'tip_id' => factory(App\TechTips::class)->create()->tip_id, |
| 11 | 11 | 'user_id' => factory(App\User::class)->create()->user_id, |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\Customers; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(Customers::class, function (Faker $faker) { |
|
| 8 | +$factory->define(Customers::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'cust_id' => $faker->unique()->numberBetween(50, 10000), |
| 11 | 11 | 'name' => $faker->company(), |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\TechTipTypes; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(TechTipTypes::class, function (Faker $faker) { |
|
| 8 | +$factory->define(TechTipTypes::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'description' => $faker->catchPhrase, |
| 11 | 11 | ]; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use App\CustomerFiles; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(CustomerFiles::class, function (Faker $faker) { |
|
| 8 | +$factory->define(CustomerFiles::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'file_id' => factory(App\Files::class)->create()->file_id, |
| 11 | 11 | 'file_type_id' => factory(App\CustomerFileTypes::class)->create()->file_type_id, |
@@ -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 | 'name' => $faker->words(3, true), |
| 11 | 11 | 'hidden' => 0 |
@@ -23,16 +23,16 @@ |
||
| 23 | 23 | // TODO - simplify this |
| 24 | 24 | // Insert default settings |
| 25 | 25 | DB::table('settings')->insert([ |
| 26 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo', 'value' => config('app.logo')], |
|
| 27 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone', 'value' => config('app.timezone')], |
|
| 28 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host', 'value' => config('mail.host')], |
|
| 29 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port', 'value' => config('mail.port')], |
|
| 30 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption', 'value' => config('mail.encryption')], |
|
| 31 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username', 'value' => config('mail.username')], |
|
| 32 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password', 'value' => config('mail.password')], |
|
| 26 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo', 'value' => config('app.logo')], |
|
| 27 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone', 'value' => config('app.timezone')], |
|
| 28 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host', 'value' => config('mail.host')], |
|
| 29 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port', 'value' => config('mail.port')], |
|
| 30 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption', 'value' => config('mail.encryption')], |
|
| 31 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username', 'value' => config('mail.username')], |
|
| 32 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password', 'value' => config('mail.password')], |
|
| 33 | 33 | ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.address', 'value' => config('mail.from.address')], |
| 34 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name', 'value' => config('mail.from.name')], |
|
| 35 | - ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires', 'value' => 30], |
|
| 34 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name', 'value' => config('mail.from.name')], |
|
| 35 | + ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires', 'value' => 30], |
|
| 36 | 36 | ]); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -62,8 +62,7 @@ discard block |
||
| 62 | 62 | /* |
| 63 | 63 | * Customer Routes |
| 64 | 64 | */ |
| 65 | -Route::prefix('customer')->name('customer.')->group(function() |
|
| 66 | -{ |
|
| 65 | +Route::prefix('customer')->name('customer.')->group(function() { |
|
| 67 | 66 | // Customer Files |
| 68 | 67 | Route::resource('files', 'Customers\CustomerFilesController'); |
| 69 | 68 | // Custome Notes |
@@ -89,8 +88,7 @@ discard block |
||
| 89 | 88 | */ |
| 90 | 89 | Route::resource('tips', 'TechTips\TechTipsController'); |
| 91 | 90 | Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update') ->name('tips.submit-edit'); |
| 92 | -Route::prefix('tip')->name('tip.')->group(function() |
|
| 93 | -{ |
|
| 91 | +Route::prefix('tip')->name('tip.')->group(function() { |
|
| 94 | 92 | Route::resource('comments', 'TechTips\TechTipCommentsController'); |
| 95 | 93 | Route::get('search', 'TechTips\TechTipsController@search') ->name('search'); |
| 96 | 94 | Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details') ->name('details'); |
@@ -8,59 +8,59 @@ discard block |
||
| 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 | * Download File Routes |
| 17 | 17 | */ |
| 18 | -Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
| 18 | +Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
| 19 | 19 | Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive'); |
| 20 | -Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
| 20 | +Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
| 21 | 21 | |
| 22 | 22 | /* |
| 23 | 23 | * User Settings Routes |
| 24 | 24 | */ |
| 25 | -Route::get('account', 'AccountController@index') ->name('account'); |
|
| 26 | -Route::post('account', 'AccountController@submit') ->name('account'); |
|
| 27 | -Route::put('account', 'AccountController@notifications') ->name('account'); |
|
| 28 | -Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
| 25 | +Route::get('account', 'AccountController@index') ->name('account'); |
|
| 26 | +Route::post('account', 'AccountController@submit') ->name('account'); |
|
| 27 | +Route::put('account', 'AccountController@notifications') ->name('account'); |
|
| 28 | +Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
| 29 | 29 | Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword'); |
| 30 | 30 | |
| 31 | 31 | /* |
| 32 | 32 | * Basic Logged In Routes |
| 33 | 33 | */ |
| 34 | -Route::get('about', 'DashboardController@about') ->name('about'); |
|
| 35 | -Route::get('dashboard', 'DashboardController@index') ->name('dashboard'); |
|
| 36 | -Route::get('notifications', 'DashboardController@getNotifications')->name('getNotifications'); |
|
| 34 | +Route::get('about', 'DashboardController@about') ->name('about'); |
|
| 35 | +Route::get('dashboard', 'DashboardController@index') ->name('dashboard'); |
|
| 36 | +Route::get('notifications', 'DashboardController@getNotifications')->name('getNotifications'); |
|
| 37 | 37 | Route::get('mark-notification/{id}', 'DashboardController@markNotification')->name('markNotification'); |
| 38 | -Route::delete('notifications/{id}', 'DashboardController@delNotification') ->name('delNotification'); |
|
| 38 | +Route::delete('notifications/{id}', 'DashboardController@delNotification') ->name('delNotification'); |
|
| 39 | 39 | |
| 40 | 40 | /* |
| 41 | 41 | * File Link Routes |
| 42 | 42 | */ |
| 43 | -Route::prefix('links')->name('links.')->group(function () { |
|
| 43 | +Route::prefix('links')->name('links.')->group(function() { |
|
| 44 | 44 | // Resource controllers for base access |
| 45 | - Route::resource('data', 'FileLinks\FileLinksController'); |
|
| 46 | - Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
| 47 | - Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
| 45 | + Route::resource('data', 'FileLinks\FileLinksController'); |
|
| 46 | + Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
| 47 | + Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
| 48 | 48 | Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details') ->name('details'); |
| 49 | - Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
| 49 | + Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
| 50 | 50 | // File Link Files |
| 51 | - Route::resource('files', 'FileLinks\LinkFilesController'); |
|
| 51 | + Route::resource('files', 'FileLinks\LinkFilesController'); |
|
| 52 | 52 | // Index landing page |
| 53 | - Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
| 53 | + Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | 56 | /* |
| 57 | 57 | * Guest File Link Routes |
| 58 | 58 | */ |
| 59 | 59 | Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles'); |
| 60 | -Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
| 61 | -Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
| 62 | -Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
| 63 | -Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
| 60 | +Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
| 61 | +Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
| 62 | +Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
| 63 | +Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
| 64 | 64 | |
| 65 | 65 | /* |
| 66 | 66 | * Customer Routes |
@@ -68,44 +68,44 @@ discard block |
||
| 68 | 68 | Route::prefix('customer')->name('customer.')->group(function() |
| 69 | 69 | { |
| 70 | 70 | // Customer Files |
| 71 | - Route::resource('files', 'Customers\CustomerFilesController'); |
|
| 71 | + Route::resource('files', 'Customers\CustomerFilesController'); |
|
| 72 | 72 | // Custome Notes |
| 73 | - Route::get('download-note/{id}', 'DownloadController@downloadCustNote') ->name('download-note'); |
|
| 74 | - Route::resource('notes', 'Customers\CustomerNotesController'); |
|
| 73 | + Route::get('download-note/{id}', 'DownloadController@downloadCustNote') ->name('download-note'); |
|
| 74 | + Route::resource('notes', 'Customers\CustomerNotesController'); |
|
| 75 | 75 | // Customer Contacts |
| 76 | - Route::resource('contacts', 'Customers\CustomerContactsController'); |
|
| 76 | + Route::resource('contacts', 'Customers\CustomerContactsController'); |
|
| 77 | 77 | // Customer Systems |
| 78 | - Route::resource('systems', 'Customers\CustomerSystemsController'); |
|
| 78 | + Route::resource('systems', 'Customers\CustomerSystemsController'); |
|
| 79 | 79 | // Customer Details |
| 80 | - Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details')->name('details'); |
|
| 81 | - Route::resource('id', 'Customers\CustomerDetailsController'); |
|
| 80 | + Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details')->name('details'); |
|
| 81 | + Route::resource('id', 'Customers\CustomerDetailsController'); |
|
| 82 | 82 | // check Id and bookmark customer |
| 83 | 83 | Route::get('toggle-fav/{action}/{custID}', 'Customers\CustomerController@toggleFav') ->name('toggle-fav'); |
| 84 | - Route::get('check-id/{id}', 'Customers\CustomerController@checkID') ->name('check-id'); |
|
| 84 | + Route::get('check-id/{id}', 'Customers\CustomerController@checkID') ->name('check-id'); |
|
| 85 | 85 | // Index landing/search page |
| 86 | - Route::get('search', 'Customers\CustomerController@search') ->name('search'); |
|
| 87 | - Route::get('/', 'Customers\CustomerController@index') ->name('index'); |
|
| 86 | + Route::get('search', 'Customers\CustomerController@search') ->name('search'); |
|
| 87 | + Route::get('/', 'Customers\CustomerController@index') ->name('index'); |
|
| 88 | 88 | }); |
| 89 | 89 | |
| 90 | 90 | /* |
| 91 | 91 | * Tech Tip Routes |
| 92 | 92 | */ |
| 93 | -Route::resource('tips', 'TechTips\TechTipsController'); |
|
| 94 | -Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update') ->name('tips.submit-edit'); |
|
| 93 | +Route::resource('tips', 'TechTips\TechTipsController'); |
|
| 94 | +Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update') ->name('tips.submit-edit'); |
|
| 95 | 95 | Route::prefix('tip')->name('tip.')->group(function() |
| 96 | 96 | { |
| 97 | - Route::resource('comments', 'TechTips\TechTipCommentsController'); |
|
| 98 | - Route::get('search', 'TechTips\TechTipsController@search') ->name('search'); |
|
| 99 | - Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details') ->name('details'); |
|
| 100 | - Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage'); |
|
| 97 | + Route::resource('comments', 'TechTips\TechTipCommentsController'); |
|
| 98 | + Route::get('search', 'TechTips\TechTipsController@search') ->name('search'); |
|
| 99 | + Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details') ->name('details'); |
|
| 100 | + Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage'); |
|
| 101 | 101 | Route::get('toggle-fav/{action}/{tipID}', 'TechTips\TechTipsController@toggleFav') ->name('toggle-fav'); |
| 102 | - Route::get('download-tip/{id}', 'DownloadController@downloadTechTip') ->name('downloadTip'); |
|
| 102 | + Route::get('download-tip/{id}', 'DownloadController@downloadTechTip') ->name('downloadTip'); |
|
| 103 | 103 | }); |
| 104 | 104 | |
| 105 | 105 | /* |
| 106 | 106 | * Administration Routes |
| 107 | 107 | */ |
| 108 | -Route::prefix('admin')->name('admin.')->group(function () { |
|
| 108 | +Route::prefix('admin')->name('admin.')->group(function() { |
|
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | |