ldc-crm/app/Http/Requests/Bo/QuestionExport.php
2023-10-06 16:37:30 +02:00

30 lines
570 B
PHP

<?php
namespace App\Http\Requests\Bo;
use Illuminate\Foundation\Http\FormRequest;
class QuestionExport extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize(): bool
{
return auth('backend')->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
return [
'brand' => 'required|numeric|exists:brands,id'
];
}
}