|
13 | 13 | |
|
14 | 14 | */
|
15 | 15 |
|
16 |
| -// Homepage Route |
17 |
| -Route::get('/', 'WelcomeController@welcome')->name('welcome'); |
| 16 | +Route::group(['middleware' => 'activity'], function () { |
| 17 | + // Homepage Route |
| 18 | + Route::get('/', 'WelcomeController@welcome')->name('welcome'); |
| 19 | +}); |
18 | 20 |
|
19 | 21 | // Authentication Routes
|
20 | 22 | Auth::routes();
|
21 | 23 |
|
22 | 24 | // Public Routes
|
23 |
| -Route::group(['middleware' => 'web'], function () { |
| 25 | +Route::group(['middleware' => ['web', 'activity']], function () { |
24 | 26 |
|
25 | 27 | // Activation Routes
|
26 | 28 | Route::get('/activate', ['as' => 'activate', 'uses' => 'Auth\ActivateController@initial']);
|
|
38 | 40 | });
|
39 | 41 |
|
40 | 42 | // Registered and Activated User Routes
|
41 |
| -Route::group(['middleware' => ['auth', 'activated']], function () { |
| 43 | +Route::group(['middleware' => ['auth', 'activated', 'activity']], function () { |
42 | 44 |
|
43 | 45 | // Activation Routes
|
44 | 46 | Route::get('/activation-required', ['uses' => 'Auth\ActivateController@activationRequired'])->name('activation-required');
|
|
55 | 57 | });
|
56 | 58 |
|
57 | 59 | // Registered, activated, and is current user routes.
|
58 |
| -Route::group(['middleware'=> ['auth', 'activated', 'currentUser']], function () { |
| 60 | +Route::group(['middleware'=> ['auth', 'activated', 'currentUser', 'activity']], function () { |
59 | 61 |
|
60 | 62 | // User Profile and Account Routes
|
61 | 63 | Route::resource(
|
|
92 | 94 | });
|
93 | 95 |
|
94 | 96 | // Registered, activated, and is admin routes.
|
95 |
| -Route::group(['middleware'=> ['auth', 'activated', 'role:admin']], function () { |
| 97 | +Route::group(['middleware'=> ['auth', 'activated', 'role:admin', 'activity']], function () { |
96 | 98 | Route::resource('/users/deleted', 'SoftDeletesController', [
|
97 | 99 | 'only' => [
|
98 | 100 | 'index', 'show', 'update', 'destroy',
|
|
0 commit comments