Created
April 19, 2018 13:49
-
-
Save shahednur/4835238858817e0307ab9938b2074381 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route Controller: | |
//List Products | |
Route::get('products','ProductController@index'); | |
//List single Product | |
Route::get('product/{id}','ProductController@show'); | |
//Create new Product | |
Route::post('product','ProductController@store'); | |
//Update Product | |
Route::put('product','ProductController@store'); | |
//Delete Product | |
Route::delete('product/{id}','ProductController@destroy'); | |
//List Brands | |
Route::get('brands','BrandController@index'); | |
Route::get('branding','BrandController@brander'); | |
//List single Brand | |
Route::get('brand/{id}','BrandController@show'); | |
//Create new Brand | |
Route::post('brand','BrandController@store'); | |
//Update Brand | |
Route::put('brand','BrandController@store'); | |
//Delete Brand | |
Route::delete('brand/{id}','BrandController@destroy'); | |
//List Categories | |
Route::get('categories','CategoryController@index'); | |
Route::get('categoring','CategoryController@category'); | |
//List single Category | |
Route::get('category/{id}','CategoryController@show'); | |
//Create new Category | |
Route::post('category','CategoryController@store'); | |
//Update Category | |
Route::put('category','CategoryController@store'); | |
//Delete Category | |
Route::delete('category/{id}','CategoryController@destroy'); | |
//List Orders | |
Route::get('orders','OrderController@index'); | |
//List single Order | |
Route::get('order/{id}','OrderController@show'); | |
//Create new Order | |
Route::post('order','OrderController@store'); | |
//Update Order | |
Route::put('order','OrderController@store'); | |
//Delete Order | |
Route::delete('order/{id}','OrderController@destroy'); | |
//List OrderItems | |
Route::get('order-items','OrderItemController@index'); | |
//List single OrderItems | |
Route::get('order-item/{id}','OrderItemController@show'); | |
//Create new OrderItem | |
Route::post('order-item','OrderItemController@store'); | |
//Update OrderItem | |
Route::put('order-item','OrderItemController@store'); | |
//Delete OrderItem | |
Route::delete('order-item/{id}','OrderItemController@destroy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment