2019-11-16 10:21:14 +03:00

32 lines
566 B
PHP

<?php
namespace Modules\OfflinePayments\Http\Requests;
use App\Abstracts\Http\FormRequest as Request;
class Setting extends Request
{
/**
* 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',
'code' => 'required|string',
];
}
}