skip to Main Content

Reactjs – Reusing the BrowserRouter Route in another component

I have BrowserRouter in my header.js file: <BrowserRouter> <header className='tren dark:bg-blend-multiply h-[25vh] grid grid-cols-12 shadow-xl '> <div className='flex items-center justify-center col-span-full md:justify-end md:pr-10'> <div className='flex flex-row justify-between w-full px-4 md:block md:w-fit'> <h1 className='text-center text-white underline decoration-wavy decoration-2 '> Dit Gestion…

VIEW QUESTION

Missing required parameter for update route laravel 11

I have an error Missing required parameter for [Route: updatetransaksi] [URI: penjualan/update/{id}] [Missing parameter: id]. web code route::get('/penjualan/edit/{id_penjualan}', [PenjualanController::class, 'edit']); route::post('/penjualan/update/{id}', [PenjualanController::class, 'update'])->name('updatetransaksi'); controller code public function edit(string $id_penjualan) { $penjualan = Penjualan::where('id_penjualan', $id_penjualan)->first(); $penjualan = DetailPenjualan::with('Penjualan', 'Barang')->where('id_penjualan', $id_penjualan)->get(); $penjualanData…

VIEW QUESTION

redirect Request to another controller in middleware of laravel

i have a problem with redirect of controller or URL request, i have two api route for example: API No. 1: Route::prefix('v1')->group(function () { Route::controller('handelProController')->group(function () { Route::post('products/all/list', 'getList'); }); }); API No. 2: Route::prefix('v2')->group(function () { Route::controller('anotherProController')->group(function () {…

VIEW QUESTION
Back To Top
Search