app/Http/Controllers/TestController.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(ProductModel $productM)
    {
        $products = $productM::getProducts(['id','bncode','cas','product_ename','product_cname']);
        return view('test.create',compact('data','products'));
    }
public function create ( ProductModel $ productM ) { $ products = $ productM :: getProducts ( [ 'id' , 'bncode' , 'cas' , 'product_ename' , 'product_cname' ] ) ; return view ( 'test.create' , compact ( 'data' , 'products' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//