コード例 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param Quote $quote
  *
  * @return Response
  * @internal param int $id
  */
 public function edit(Quote $quote)
 {
     $authors = Author::lists('name', 'id')->all();
     $categories = Category::lists('name', 'id')->all();
     $categoriesOfImages = ImageCategory::lists('name', 'id')->all();
     return view('admin.quote.edit', compact('quote'))->withTitle('Edit: ' . $quote->title)->withAuthors($authors)->withCategories($categories)->with('categoriesOfImages', $categoriesOfImages);
 }
コード例 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param ImageCategory $category
  *
  * @return Response
  * @internal param int $id
  */
 public function edit(ImageCategory $category)
 {
     $categories = ImageCategory::lists('name', 'id')->all();
     return view('admin.image_category.edit', compact('category'))->withTitle('Edit: ' . $category->name)->withMedia($category->media()->getResults())->withCategories($categories);
 }