/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $templates = Template::get(); return view('templates.index', compact('templates')); }