I'm used to write the update query but for now it's not working for me in laravel. I have write the update query like this.
DB::table('table_name')->where(['id'=>$requst_id])->update(array('status'=>$status)
When i run dd().it's getting 0 to me
But with same condition i used
DB::table('table_name')->where(['id'=>$requst_id])->first();
I got the data. Can anyone suggest me where i'm going wrong. Thanks in advance.Any help will be appreciated.