UserGuide.php
739 Bytes
<?php
/**
* This overwrites the Log Viewer Package routes so we can use middleware to protect it the way we want
* You shouldn't have to change anything
*/
Route::group([
'namespace' => 'UserGuide',
'middleware' => 'access.routeNeedsPermission:manage-user-guide',
], function() {
Route::resource('userGuide', 'UserGuideController', ['except' => ['show']]);
Route::get('userGuide/get', 'UserGuideTableController')->name('userGuide.get');
Route::group(['prefix' => 'userGuide/{userGuide}'], function() {
Route::get('info', 'UserGuideController@show')->name('userGuide.info');
Route::get('mark/{status}', 'UserGuideController@mark')->name('userGuide.mark')->where(['status' => '[0,1]']);
});
});