hqtrung

Results 2 issues of hqtrung

Look like Api-Guard doesn't work with dingo/api 's route. /*\* this route works **/ Route::get('protected/{id}', '\App\Http\Controllers\GetCouponController@forCustomer'); $api = app('Dingo\Api\Routing\Router'); $api->version('v1', function ($api) { /*\* this route give METHOD-NOT-ALLOWED **/ $api->get('get_coupon/customer/{id}',...

I have initialize the connection with $this->odoo = new Odoo(new Odoo\Config($this->database, $this->host, $this->username, $this->password), new Odoo\Context("en", "Asia/Saigon")); but when I use model $order = $this->odoo->model('pos.order') ->where('id', '=', '110930') ->get(); The...