08-06-2023, 05:07 PM
DB::table('yourtablename')->where('id', '=', $id)->orderBy('id','asc')->pluck('user_id')->toArray();
Very important
Laravel how to return single column value using Query Builder
|
||
| ||
Users browsing this thread: |
1 Guest(s) |