/** * Display a listing of the resource. * * @return Response */ public function index() { $tipoproducto = ProductType::all(); View::share('selected_option', 'Ver Tipo Producto'); $view = View::make('tipoproducto.list')->with('tipoproducto', $tipoproducto); return $view; }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // $product = Product::find($id); $type = ProductType::all(); $brand = Brand::all(); return View::make('product.edit')->withProduct($product)->withBrand($brand)->withType($type); }
public function __construct() { $productType = ProductType::all(); View::share('tipo_producto', $productType); }