2016-09-05 15:28:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
class SaveSettingsRequest 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 [
|
|
|
|
'app_name' => 'required|max:255',
|
|
|
|
'date_format' => 'required',
|
2016-09-06 13:26:02 +01:00
|
|
|
'smtp_server' => 'required',
|
|
|
|
'smtp_port' => 'required:integer'
|
2016-09-05 15:28:56 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|