/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // Get all stacks $stacks = Stack::with(['type', 'bank', 'brand'])->get(); return view('stacks.index', compact('stacks')); }