Advertisement
chisumo

route resoouces laravel 9

Mar 28th, 2022
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Route::controller(BrandController::class)->prefix('/brand')->group(function () {
  2. Route::get('/', 'index')->name('brand.index');
  3. Route::get('/create', 'create')->name('brand.create');
  4. Route::post('/store', 'store')->name('brand.store');
  5. Route::get('/edit/{brand}', 'edit')->name('brand.edit');
  6. Route::put('/{brand}', 'update')->name('brand.update');
  7. Route::get('/{brand}', 'destroy')->name('brand.delete');
  8.  
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement