forked from akaunting/akaunting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.php
29 lines (23 loc) · 1018 Bytes
/
common.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
use Illuminate\Support\Facades\Route;
/**
* 'common' middleware applied to all routes
*
* @see \App\Providers\Route::mapCommonRoutes
*/
Route::group(['middleware' => 'auth'], function () {
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
Route::get('{id}', 'Common\Uploads@get')->name('get');
Route::get('{id}/show', 'Common\Uploads@show')->name('show');
Route::get('{id}/download', 'Common\Uploads@download')->name('download');
});
Route::group(['middleware' => ['permission:read-admin-panel']], function () {
Route::group(['middleware' => ['menu.admin']], function () {
Route::get('/', 'Common\Dashboards@show')->name('dashboard');
});
Route::get('wizard', 'Wizard\Companies@edit')->name('wizard.edit');
});
Route::group(['middleware' => ['menu.portal', 'permission:read-client-portal']], function () {
Route::get('portal', 'Portal\Dashboard@index')->name('portal.dashboard');
});
});