Add new currency table and make debt currency agnostic (#188)
* add new currency table and make debt currency agnostic * removed currencytableseeder from production run job * russian ruble added to currencies * fix up default value * fix down migration and remove seed
This commit is contained in:
committed by
Régis Freyd
parent
f61e10daca
commit
503f38ee06
@@ -46,13 +46,16 @@ class SettingsController extends Controller
|
||||
$timezone = $request->input('timezone');
|
||||
$layout = $request->input('layout');
|
||||
$locale = $request->input('locale');
|
||||
$currency = $request->input('currency_id');
|
||||
|
||||
Auth::user()->email = $email;
|
||||
Auth::user()->timezone = $timezone;
|
||||
Auth::user()->fluid_container = $layout;
|
||||
Auth::user()->metric = $layout;
|
||||
Auth::user()->locale = $locale;
|
||||
Auth::user()->save();
|
||||
$user = Auth::user();
|
||||
$user->email = $email;
|
||||
$user->timezone = $timezone;
|
||||
$user->fluid_container = $layout;
|
||||
$user->metric = $layout;
|
||||
$user->locale = $locale;
|
||||
$user->currency_id = $currency;
|
||||
$user->save();
|
||||
|
||||
return redirect('settings')->with('status', trans('settings.settings_success'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user