ldc-legaulois/app/Http/Requests/Club/Messages/BlockCustomerRequest.php
2026-09-25 16:25:31 +02:00

27 lines
575 B
PHP

<?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.
*/
public function authorize(): bool
{
return Auth::guard('club')->check();
}
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'username' => 'required|exists:customers,username',
];
}
}