Commit 0eac4e6c authored by Vipul Basapati's avatar Vipul Basapati

Refactored Routes

parent 0d3df30c
<?php
return [
/*
* Skin for Admin LTE backend theme
*
* Available options:
*
* black
* black-light
* blue
* blue-light
* green
* green-light
* purple
* purple-light
* red
* red-light
* yellow
* yellow-light
*/
'theme' => 'blue-light',
/*
* Layout for the Admin LTE backend theme
*
* Fixed: use the class .fixed to get a fixed header and sidebar.
* This makes scrolling affect the content only and put the sidebar and header in a fixed position.
*
* Collapsed Sidebar: use the class .sidebar-collapse to have a collapsed sidebar upon loading.
* Use this if you want the sidebar to be hidden by default.
*
* Boxed Layout: use the class .layout-boxed to get a boxed layout that stretches only to 1250px.
* Provides spaces on both sides of the screen, if the screen is big enough.
*
* Top Navigation: use the class .layout-top-nav to remove the sidebar and have your links at the top navbar.
* Makes the sidebar hover the content when expanded.
*
* Sidebar Mini: Shows the only the icons of the sidebar items when collapsed. Sidebar will not fully collapse.
*
* Available options:
*
* fixed
* sidebar-collapse
* layout-boxed
* layout-top-nav
* sidebar-mini
*
* Note: you cannot use both layout-boxed and fixed at the same time. Anything else can be mixed together.
*/
'layout' => 'sidebar-mini',
];
<?php
/*
* Blogs Categories Management
*/
Route::group(['namespace' => 'BlogCategories'], function () {
Route::resource('blogcategories', 'BlogCategoriesController', ['except' => ['show']]);
//For DataTables
Route::post('blogcategories/get', 'BlogCategoriesTableController')
->name('blogcategories.get');
});
<?php
/*
* Blogs Tags Management
*/
Route::group(['namespace' => 'BlogTags'], function () {
Route::resource('blogtags', 'BlogTagsController', ['except' => ['show']]);
//For DataTables
Route::post('blogtags/get', 'BlogTagsTableController')
->name('blogtags.get');
});
\ No newline at end of file
<?php
/*
* Blogs Management
*/
Route::group(['namespace' => 'Blogs'], function () {
Route::resource('blogs', 'BlogsController', ['except' => ['show']]);
//For DataTables
Route::post('blogs/get', 'BlogsTableController')
->name('blogs.get');
});
\ No newline at end of file
...@@ -11,75 +11,4 @@ Route::post('get-permission', 'DashboardController@getPermissionByRole')->name(' ...@@ -11,75 +11,4 @@ Route::post('get-permission', 'DashboardController@getPermissionByRole')->name('
*/ */
Route::get('profile/edit', 'DashboardController@editProfile')->name('profile.edit'); Route::get('profile/edit', 'DashboardController@editProfile')->name('profile.edit');
Route::patch('profile/update', 'DashboardController@updateProfile') Route::patch('profile/update', 'DashboardController@updateProfile')
->name('profile.update'); ->name('profile.update');
\ No newline at end of file
/*
* General Slug generator
*/
Route::any('generateSlug', function (\Illuminate\Http\Request $request) {
return str_slug($request['text']);
})->name('generate.slug');
/*
* Settings Management
*/
Route::group(['namespace' => 'Settings'], function () {
Route::resource('settings', 'SettingsController', ['except' => ['show', 'create', 'save', 'index', 'destroy']]);
Route::post('removeicon', 'SettingsController@removeIcon')->name('removeicon');
});
/*
* Blogs Categories Management
*/
Route::group(['namespace' => 'BlogCategories'], function () {
Route::resource('blogcategories', 'BlogCategoriesController', ['except' => ['show']]);
//For DataTables
Route::post('blogcategories/get', 'BlogCategoriesTableController')
->name('blogcategories.get');
});
/*
* Blogs Tags Management
*/
Route::group(['namespace' => 'BlogTags'], function () {
Route::resource('blogtags', 'BlogTagsController', ['except' => ['show']]);
//For DataTables
Route::post('blogtags/get', 'BlogTagsTableController')
->name('blogtags.get');
});
/*
* Blogs Management
*/
Route::group(['namespace' => 'Blogs'], function () {
Route::resource('blogs', 'BlogsController', ['except' => ['show']]);
//For DataTables
Route::post('blogs/get', 'BlogsTableController')
->name('blogs.get');
});
/*
* Faqs Management
*/
Route::group(['namespace' => 'Faqs'], function () {
Route::resource('faqs', 'FaqsController', ['except' => ['show']]);
//For DataTables
Route::post('faqs/get', 'FaqsTableController')->name('faqs.get');
// Status
Route::get('faqs/{id}/mark/{status}', 'FaqsController@mark')->name('faqs.mark')->where(['status' => '[0,1]']);
});
/*
* Notificatons Management
*/
Route::resource('notification', 'NotificationController', ['except' => ['show', 'create', 'store']]);
Route::get('notification/getlist', 'NotificationController@ajaxNotifications')->name('admin.notification.getlist');
Route::get('notification/clearcurrentnotifications', 'NotificationController@clearCurrentNotifications')->name('admin.notification.clearcurrentnotifications');
Route::group(['prefix' => 'notification/{id}', 'where' => ['id' => '[0-9]+']], function () {
Route::get('mark/{is_read}', 'NotificationController@mark')->name('admin.notification.mark')->where(['is_read' => '[0,1]']);
});
<?php
/*
* Faqs Management
*/
Route::group(['namespace' => 'Faqs'], function () {
Route::resource('faqs', 'FaqsController', ['except' => ['show']]);
//For DataTables
Route::post('faqs/get', 'FaqsTableController')->name('faqs.get');
// Status
Route::get('faqs/{id}/mark/{status}', 'FaqsController@mark')->name('faqs.mark')->where(['status' => '[0,1]']);
});
\ No newline at end of file
<?php
/*
* General Slug generator
*/
Route::any('generateSlug', function (\Illuminate\Http\Request $request) {
return str_slug($request['text']);
})->name('generate.slug');
<?php
/*
* Notificatons Management
*/
Route::resource('notification', 'NotificationController', ['except' => ['show', 'create', 'store']]);
Route::get('notification/getlist', 'NotificationController@ajaxNotifications')
->name('admin.notification.getlist');
Route::get('notification/clearcurrentnotifications', 'NotificationController@clearCurrentNotifications')
->name('admin.notification.clearcurrentnotifications');
Route::group(['prefix' => 'notification/{id}', 'where' => ['id' => '[0-9]+']], function () {
Route::get('mark/{is_read}', 'NotificationController@mark')
->name('admin.notification.mark')
->where(['is_read' => '[0,1]']);
});
<?php
/*
* Settings Management
*/
Route::group(['namespace' => 'Settings'], function () {
Route::resource('settings', 'SettingsController', ['except' => ['show', 'create', 'save', 'index', 'destroy']]);
Route::post('removeicon', 'SettingsController@removeIcon')->name('removeicon');
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment