Skip to content

Instantly share code, notes, and snippets.

@blogcacanid

blogcacanid/api.php

Created May 26, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.