mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
39 lines
986 B
PHP
39 lines
986 B
PHP
<?php
|
|
namespace App\Http\Requests\SetupWizard;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreAppSetupRequest 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 [
|
|
'title' => 'required|string',
|
|
'description' => 'required|string',
|
|
'logo' => 'sometimes|file',
|
|
'logo_horizontal' => 'sometimes|file',
|
|
'favicon' => 'sometimes|file',
|
|
'contactMail' => 'required|email',
|
|
'googleAnalytics' => 'sometimes|string',
|
|
'defaultStorage' => 'sometimes|digits_between:1,9',
|
|
'userRegistration' => 'required|boolean',
|
|
'storageLimitation' => 'required|boolean',
|
|
];
|
|
}
|
|
}
|