Пример #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'));
 }
Пример #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'));
 }