2024-07-16 10:47:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Club\Messages;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
|
|
|
|
|
|
class BlockCustomerRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
|
*/
|
2024-10-04 17:03:04 +02:00
|
|
|
public function authorize(): bool
|
2024-07-16 10:47:23 +02:00
|
|
|
{
|
|
|
|
|
return Auth::guard('club')->check();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*/
|
2024-10-04 17:03:04 +02:00
|
|
|
public function rules(): array
|
2024-07-16 10:47:23 +02:00
|
|
|
{
|
|
|
|
|
return [
|
2026-09-25 16:25:31 +02:00
|
|
|
'username' => 'required|exists:customers,username',
|
2024-07-16 10:47:23 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|