Added option to select default alias format

This commit is contained in:
Will
2020-06-18 12:10:02 +01:00
parent 2359d42077
commit 3e5673d8f5
10 changed files with 171 additions and 9 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateDefaultAliasFormatRequest 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 [
'format' => [
'required',
'string',
'in:uuid,random_words'
]
];
}
}