update($newDetails); } public function pluckAvailable() { return Asset::where('is_available', 1)->pluck('name', 'asset_id'); } }