first(); if (empty($default)) { $adapter = FileAdapter::where('name', 'Adattatore locale')->first(); $adapter->is_default = 1; $adapter->save(); }