2023-10-04 15:51:07 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Bo;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
|
|
class UploadRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
|
*
|
|
|
|
|
* @return boolean
|
|
|
|
|
*/
|
2025-05-20 10:16:12 +02:00
|
|
|
public function authorize(): bool
|
2023-10-04 15:51:07 +02:00
|
|
|
{
|
2025-05-26 11:33:47 +02:00
|
|
|
return \auth('backend')->check();
|
2023-10-04 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
2025-05-20 10:16:12 +02:00
|
|
|
public function rules(): array
|
2023-10-04 15:51:07 +02:00
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'uuid' => 'nullable|uuid'
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|