Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created May 26, 2020 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blogcacanid/171c5bc4fcff5d7966ac8ada090d2512 to your computer and use it in GitHub Desktop.
Save blogcacanid/171c5bc4fcff5d7966ac8ada090d2512 to your computer and use it in GitHub Desktop.
api.php Back End Product Laravel 7
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