ldc-legaulois/app/Http/Requests/Club/Messages/BlockCustomerRequest.php

28 lines
575 B
PHP
Raw Permalink Normal View History

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.
*/
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.
*/
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
];
}
}