how to get a particular column in laravel 8

135

how to get a particular column in laravel 8 -

   $result = DB::Table('table_name')->select('column1','column2')->where('id',1)->get();  

Comments

Submit
0 Comments