mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 08:24:06 +00:00
change the url variable for customer profile from id to marking
This commit is contained in:
+2
-1
@@ -38,7 +38,8 @@ Route::get('/settings', function () {
|
||||
return view('pages.settings');
|
||||
})->name('settings');
|
||||
|
||||
Route::get('/customer/{id}', function ($id) {
|
||||
Route::get('/customer/{marking}', function ($marking) {
|
||||
$id = \App\Models\Company::where('reference', '=', $marking)->first()->id;
|
||||
return view('pages.customers', ['id' => $id]);
|
||||
})->name('customer.profile');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user