PHP 8.2.30
Preview: user.php Size: 1.86 KB
/home/byroehnu/easetack.com/routes/user.php

<?php

use App\Http\Controllers\Frontend\ProfileController;
use App\Http\Controllers\Frontend\ReviewController;
use App\Http\Controllers\Frontend\TicketController;
use App\Http\Controllers\Frontend\UserController;
use Illuminate\Support\Facades\Route;

Route::redirect('/', '/user/dashboard');

Route::get('/dashboard', [UserController::class, 'dashboard'])->name('dashboard');
Route::get('/profile', [UserController::class, 'profile'])->name('profile.edit');
Route::put('/profile-update/{user}', [UserController::class, 'update'])->name('profile.update');

// orders
Route::get('/order', [UserController::class, 'orders'])->name('orders');
Route::get('/download-invoice/{order}', [UserController::class, 'downloadInvoice'])->name('download.invoice');

// Review routes
Route::group(['prefix' => '/review', 'as' => 'review.'], function () {
    Route::get('/', [ReviewController::class, 'index'])->name('index');
    Route::get('/{productId}', [ReviewController::class, 'reviewShow'])->name('show');
    Route::post('/{productId}/make', [ReviewController::class, 'makeReview'])->name('make');
});

//support ticket
Route::group(['prefix' => 'tickets', 'as' => 'tickets.'], function () {
    Route::get('/', [TicketController::class, 'index'])->name('index');
    Route::get('/open-ticket', [TicketController::class, 'create'])->name('create');
    Route::post('/store', [TicketController::class, 'store'])->name('store');
    Route::get('/reply/{ticket}', [TicketController::class, 'reply'])->name('reply');
    Route::post('/reply/{ticket}', [TicketController::class, 'submitReply'])->name('submit.reply');
});

Route::group(['prefix' => 'profile', 'as' => 'profile.'], function () {
    Route::get('/change-password', [ProfileController::class, 'changePassword'])->name('change.password');
    Route::patch('/update-password', [ProfileController::class, 'updatePassword'])->name('update.password');
});

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
30.93 KB lrw-rw-rw- 2025-05-17 13:00:28
Edit Download
570 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
2.89 KB lrw-rw-rw- 2025-05-05 10:23:36
Edit Download
558 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
592 B lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
1.36 KB lrw-rw-rw- 2025-04-08 04:12:57
Edit Download
557 B lrw-rw-rw- 2025-04-19 04:22:20
Edit Download
1.86 KB lrw-rw-rw- 2025-04-19 04:22:20
Edit Download
6.26 KB lrw-rw-rw- 2025-05-15 11:24:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).