@@ -5,7 +5,7 @@ |
||
| 5 | 5 | // use App\Model; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(Illuminate\Notifications\DatabaseNotification::class, function (Faker $faker) { |
|
| 8 | +$factory->define(Illuminate\Notifications\DatabaseNotification::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | // |
| 11 | 11 | 'id' => $faker->uuid, |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('failed_jobs', function (Blueprint $table) { |
|
| 16 | + Schema::create('failed_jobs', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->text('connection'); |
| 19 | 19 | $table->text('queue'); |
@@ -55,12 +55,12 @@ |
||
| 55 | 55 | // return $tipFavs; |
| 56 | 56 | |
| 57 | 57 | return view('dashboard', [ |
| 58 | - 'custFavs' => $custFavs, |
|
| 59 | - 'tipFavs' => $tipFavs, |
|
| 60 | - 'tips30' => $tips30Days, |
|
| 61 | - 'tipsAll' => $tipsTotal, |
|
| 62 | - 'activeLinks' => $activeLinks, |
|
| 63 | - 'totalLinks' => $totalLinks, |
|
| 58 | + 'custFavs' => $custFavs, |
|
| 59 | + 'tipFavs' => $tipFavs, |
|
| 60 | + 'tips30' => $tips30Days, |
|
| 61 | + 'tipsAll' => $tipsTotal, |
|
| 62 | + 'activeLinks' => $activeLinks, |
|
| 63 | + 'totalLinks' => $totalLinks, |
|
| 64 | 64 | // 'notifications' => $notifications->toArray(), |
| 65 | 65 | // 'modules' => $modules |
| 66 | 66 | ]); |
@@ -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,38 +68,38 @@ 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 | |