Linux server.jmdstrack.com 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
/ home/ jmdstrac/ public_html/ sabc/ routes/ |
|
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::get('/', 'HomeController@index')->name('home'); Auth::routes(); Route::group(['as'=>'admin.', 'prefix'=>'admin', 'namespace'=>'Admin', 'middleware'=>['auth','admin']], function (){ Route::get('dashboard', 'DashboardController@index')->name('dashboard'); Route::get('report', 'EtatController@index')->name('report'); Route::get('add', 'AssetController@index')->name('add'); Route::post('create', 'AssetController@add')->name('create'); Route::post('/admin/report/ajaxResponse', 'AjaxTestController@ajaxResponse'); Route::get('settings', 'SettingsController@index')->name('settings'); Route::put('profile-update', 'SettingsController@updateProfile')->name('profile.update'); Route::put('password-update', 'SettingsController@updatePassword')->name('password.update'); Route::post('/livetable/add_data','AjaxTestController@add_data'); }); Route::group(['as'=>'author.', 'prefix'=>'author', 'namespace'=>'Author', 'middleware'=>['auth','author']], function (){ Route::get('dashboard', 'DashboardController@index')->name('dashboard'); Route::get('settings', 'SettingsController@index')->name('settings'); Route::put('profile-update', 'SettingsController@updateProfile')->name('profile.update'); Route::put('password-update', 'SettingsController@updatePassword')->name('password.update'); });