Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to update dropdown value in laravel

public function edit($product_id)
    {
        $all_categories = DB::table('tbl_category')->get();
        $all_manufactures = DB::table('tbl_manufacture')->get();

        $product =  DB::table('tbl_product')
            ->where('product_id',$product_id)
            ->get()->first();

        return View('admin.edit-product')->with([
            'product'=>$product,
            'all_categories'=>$all_categories,
            'all_manufactures'=>$all_manufactures,
            ]);
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #dropdown #laravel
ADD COMMENT
Topic
Name
5+2 =