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

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