app/Http/Controllers/ProductController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $brands=brand::all();
        return view('addproduct',compact('brands'));
    }
public function index ( ) { $ brands = brand :: all ( ) ; return view ( 'addproduct' , compact ( 'brands' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .