namespaces refactoring part 2

This commit is contained in:
Peter Papp
2021-07-18 18:05:33 +02:00
parent 8f77a497b5
commit 54dc57fcbf
107 changed files with 310 additions and 279 deletions
@@ -0,0 +1,30 @@
<?php
namespace Domain\Localization\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateLanguageRequest 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 [
'name' => 'required|string',
'locale' => 'required|string',
];
}
}
@@ -0,0 +1,30 @@
<?php
namespace Domain\Localization\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateLanguageRequest 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 [
'name' => 'required|string',
'value' => 'required|string',
];
}
}
@@ -0,0 +1,30 @@
<?php
namespace Domain\Localization\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateStringRequest 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 [
'name' => 'required|string',
'value' => 'required|string',
];
}
}