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()
    {
        return view('backend.product.create', [
            'categories' => Category::orderBy('category_name', 'Asc')->get(),
            'brands' => Brand::orderBy('brand_name', 'Asc')->get(),
        ]);
    }
public function create ( ) { return view ( 'backend.product.create' , [ 'categories' => Category :: orderBy ( 'category_name' , 'Asc' ) -> get ( ) , 'brands' => Brand :: orderBy ( 'brand_name' , 'Asc' ) -> get ( ) , ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .