ldc-legaulois/app/Http/Requests/Club/Messages/BlockCustomerRequest.php
2024-10-08 11:57:56 +02:00

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