Created
May 26, 2020 02:18
-
-
Save blogcacanid/171c5bc4fcff5d7966ac8ada090d2512 to your computer and use it in GitHub Desktop.
api.php Back End Product Laravel 7
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::resource('products', 'ProductController'); | |
Route::get('/products', 'ProductController@index'); | |
Route::get('/products_page', 'ProductController@index_page'); | |
Route::post('/product/store', 'ProductController@store'); | |
Route::get('/product/edit/{id}', 'ProductController@edit'); | |
Route::get('/product/{id}', 'ProductController@show'); | |
Route::put('/product/{id}', 'ProductController@update'); | |
Route::delete('/product/{id}', 'ProductController@delete'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment