/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create($category_id)
 {
     $metadata_fields = App\MetadataField::orderBy('name')->get();
     $category = App\Category::find($category_id);
     return view('items.create', compact('category', 'metadata_fields'));
 }
Exemplo n.º 2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $metadata_fields = App\MetadataField::orderBy('name')->get();
     return view('items.create', compact('metadata_fields'));
 }