Heera/Modules/Admin/routes/web.php
2024-05-16 09:31:08 +05:45

41 lines
1.8 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\AdminController;
use Modules\Admin\Http\Controllers\CityController;
use Modules\Admin\Http\Controllers\CountryController;
use Modules\Admin\Http\Controllers\DistrictController;
use Modules\Admin\Http\Controllers\DropdownController;
use Modules\Admin\Http\Controllers\FieldController;
use Modules\Admin\Http\Controllers\MunicipalityController;
use Modules\Admin\Http\Controllers\NotificationController;
use Modules\Admin\Http\Controllers\ProvinceController;
/*
|--------------------------------------------------------------------------
| 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::group([], function () {
Route::resource('admin', AdminController::class)->names('admin');
Route::resource('country', CountryController::class)->names('country');
Route::resource('province', ProvinceController::class)->names('province');
Route::resource('district', DistrictController::class)->names('district');
Route::resource('municipality', MunicipalityController::class)->names('municipality');
Route::resource('city', CityController::class)->names('city');
Route::resource('dropdown', DropdownController::class)->names('dropdown');
Route::resource('field', FieldController::class)->names('field');
Route::get('notifications/markAsRead', [NotificationController::class, 'markAsRead'])->name('notification.markAsRead');
Route::get('notifications/markAllAsRead', [NotificationController::class, 'markAllAsRead'])->name('notification.markAllAsRead');
});