Refactor Options to a Setting service bound with the service container

This commit is contained in:
Bubka
2021-09-26 22:06:49 +02:00
parent afaa1a0a7a
commit 10fc144246
17 changed files with 453 additions and 143 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class SettingUpdateRequest 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 [
'data' => 'required',
];
}
}