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
Routes: | |
Route::resource('/', 'ShoppingController'); | |
Route::get('/prods', 'ProductsController@index'); | |
Controller: | |
<?php | |
#Fetches products on the db and sends them to a view: cart.blade.php | |
namespace App\Http\Controllers; |
NewerOlder