siakad-itm/routes/web.php
Yoga Pangestu 62f8c167e8
Some checks failed
tests / ci (pull_request) Has been cancelled
feat: implement feedback system with CRUD functionality
- Add FeedbackController to handle feedback submissions and management.
- Create Feedback model and migration for feedbacks table.
- Introduce FeedbackStatus and FeedbackType enums for better type handling.
- Implement FeedbackService for business logic related to feedback.
- Create FeedbackRequest for validation of feedback data.
- Add Tiptap rich text editor for feedback message input.
- Develop frontend components for displaying and managing feedback.
- Add routes for feedback management in web.php.
- Create utility types for feedback in TypeScript.
- Update app-sidebar to include feedback navigation.
2026-08-25 14:25:50 +07:00

24 lines
985 B
PHP

<?php
use App\Http\Controllers\FeedbackController;
use App\Http\Controllers\NotificationController;
use Illuminate\Support\Facades\Route;
Route::inertia('/', 'welcome')->name('home');
Route::middleware(['auth', 'verified'])->group(function () {
Route::inertia('dashboard', 'dashboard')->name('dashboard');
Route::prefix('notifications')->name('notifications.')->group(function () {
Route::patch('mark-all-read', [NotificationController::class, 'markAllRead'])->name('mark-all-read');
Route::delete('clear-all', [NotificationController::class, 'destroyAll'])->name('clear-all');
Route::patch('{notification}/read', [NotificationController::class, 'markRead'])->name('read');
Route::delete('{notification}', [NotificationController::class, 'destroy'])->name('destroy');
});
Route::resource('feedback', FeedbackController::class)->except(['create', 'edit', 'show']);
});
require __DIR__.'/settings.php';
require __DIR__.'/admin.php';