代碼: 選擇全部
$drivertypes = DriverType::all()->keyBy('id')->ToArray();
dd($drivertypes);
代碼: 選擇全部
$drivertypes = DriverType::all()->keyBy('id')->ToArray();
dd($drivertypes);
代碼: 選擇全部
$user1 = \DB::table('driver_types')->pluck('driver_type');
dd($user1);