Move QrCode controller logic to a business service

This commit is contained in:
Bubka
2021-09-07 23:01:53 +02:00
parent 9af39a469c
commit 3036e534e7
5 changed files with 135 additions and 30 deletions

View File

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