app/Http/Controllers/ProductController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $categories = Category::all(); 
        $vendors = Vendor::all(); 
        $brands = Brand::all();
        return view('admin.product.create', [
            'categories' => $categories,
            'vendors' => $vendors,
            'brands' => $brands
        ]);
    }
public function create ( ) { $ categories = Category :: all ( ) ; $ vendors = Vendor :: all ( ) ; $ brands = Brand :: all ( ) ; return view ( 'admin.product.create' , [ 'categories' => $ categories , 'vendors' => $ vendors , 'brands' => $ brands ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
// SELECT * FROM categories // SELECT * FROM venders