Refactor SettingsController for readability (#308)

* Refactor SettingsController
* Fix issues with account deletion
This commit is contained in:
Yamamoto Kadir
2017-06-16 19:26:06 -04:00
committed by Régis Freyd
parent 6e9b9da46d
commit 86fe1baeef
4 changed files with 254 additions and 231 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class SettingsRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'required|email|max:2083',
'timezone' => '',
'layout' => '',
'locale' => '',
'currency_id' => '',
];
}
}