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 formindex()
    {
        $categories = Category::all();
         return view('admin.products.upload', compact('categories'));
    }
public function formindex ( ) { $ categories = Category :: all ( ) ; return view ( 'admin.products.upload' , compact ( 'categories' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//  $subcategories =Sub_Category::all();