mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
namespace App\Http\Requests\SetupWizard;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreEnvironmentSetupRequest 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 [
|
|
'storage' => 'required|array',
|
|
'storage.driver' => 'required|string',
|
|
'storage.key' => 'sometimes|nullable|string',
|
|
'storage.secret' => 'sometimes|nullable|string',
|
|
'storage.endpoint' => 'sometimes|nullable|string',
|
|
'storage.region' => 'sometimes|nullable|string',
|
|
'storage.bucket' => 'sometimes|nullable|string',
|
|
'mail' => 'required|array',
|
|
'mail.driver' => 'required|string',
|
|
'mail.host' => 'required|string',
|
|
'mail.port' => 'required|string',
|
|
'mail.username' => 'required|string',
|
|
'mail.password' => 'required|string',
|
|
'mail.encryption' => 'required|string',
|
|
];
|
|
}
|
|
}
|