Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $function_types = AdminFunctionType::all();
     $function = AdminFunction::find($id);
     return view('admin.functions.edit', compact('function', 'function_types'));
 }
Exemplo n.º 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $article = $this->article->find($id);
     $categories = $this->user->categories()->get();
     $function_types = AdminFunctionType::all();
     return view('admin.article.edit', compact('article', 'categories', 'function_types'));
 }