Files
backend/app/Http/Requests/V3/Dashboard/Harim/GeneralManager/ShowRequest.php

30 lines
645 B
PHP

<?php
namespace App\Http\Requests\V3\Dashboard\Harim\GeneralManager;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class ShowRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return $this->harim->province_id == auth()->user()->province_id;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array|string>
*/
public function rules(): array
{
return [
//
];
}
}