From 7d9befedbf0f05207e39d2655259451b86ec6497 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Fri, 31 Jan 2020 00:23:09 +0300 Subject: [PATCH] added more route instructions --- app/Providers/Route.php | 14 -------------- routes/admin.php | 7 ++++++- routes/api.php | 6 ++++++ routes/common.php | 6 +++++- routes/guest.php | 7 ++++++- routes/install.php | 6 +++++- routes/portal.php | 7 ++++++- routes/signed.php | 7 ++++++- routes/wizard.php | 6 +++++- 9 files changed, 45 insertions(+), 21 deletions(-) diff --git a/app/Providers/Route.php b/app/Providers/Route.php index 2a078ead5..47b2287c5 100644 --- a/app/Providers/Route.php +++ b/app/Providers/Route.php @@ -16,18 +16,6 @@ class Route extends Provider */ protected $namespace = 'App\Http\Controllers'; - /** - * Define your route model bindings, pattern filters, etc. - * - * @return void - */ - public function boot() - { - // - - parent::boot(); - } - /** * Define the routes for the application. * @@ -50,8 +38,6 @@ class Route extends Provider $this->mapPortalRoutes(); $this->mapSignedRoutes(); - - // } /** diff --git a/routes/admin.php b/routes/admin.php index dfa4c6dca..33662fed1 100644 --- a/routes/admin.php +++ b/routes/admin.php @@ -1,6 +1,11 @@ 'uploads.', 'prefix' => 'uploads'], function () { Route::delete('{id}', 'Common\Uploads@destroy')->name('destroy'); diff --git a/routes/api.php b/routes/api.php index f0b101bda..579008ce4 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,5 +1,11 @@ version('v2', ['middleware' => ['api']], function($api) { diff --git a/routes/common.php b/routes/common.php index 2d2a68c40..c4efa6e6d 100644 --- a/routes/common.php +++ b/routes/common.php @@ -1,6 +1,10 @@ 'auth'], function () { Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () { diff --git a/routes/guest.php b/routes/guest.php index 5770411e2..920631401 100644 --- a/routes/guest.php +++ b/routes/guest.php @@ -1,6 +1,11 @@ 'auth'], function () { Route::get('login', 'Auth\Login@create')->name('login'); diff --git a/routes/install.php b/routes/install.php index 6bcfd0499..4bf9a07c4 100644 --- a/routes/install.php +++ b/routes/install.php @@ -1,6 +1,10 @@ name('install.requirements'); diff --git a/routes/portal.php b/routes/portal.php index 35e349e0d..4ed7eb9a1 100644 --- a/routes/portal.php +++ b/routes/portal.php @@ -1,6 +1,11 @@ 'portal.'], function () { Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('invoices.print'); diff --git a/routes/signed.php b/routes/signed.php index 00fc1bb59..a6a2339ca 100644 --- a/routes/signed.php +++ b/routes/signed.php @@ -1,6 +1,11 @@ name('signed.invoices.show'); Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('signed.invoices.print'); diff --git a/routes/wizard.php b/routes/wizard.php index 69a744e89..de2f2e595 100644 --- a/routes/wizard.php +++ b/routes/wizard.php @@ -1,6 +1,10 @@ 'wizard.'], function () { Route::get('companies', 'Wizard\Companies@edit')->name('companies.edit');