Skip to content

Instantly share code, notes, and snippets.

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;