/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Pattern $pattern) { $pattern->load(['regex', 'prefixes', 'sections']); return view('patterns.edit')->with(['pattern' => $pattern]); }