/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $snippets = Snippet::with('customer')->get(); return view('snippets.index', compact('snippets')); }