whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
Modules
/
Performance
/
Http
/
Requests
/
Upload File:
files >> //home/kckglobal/www/portal/Modules/Performance/Http/Requests/CreteKeyResultsRequest.php
<?php namespace Modules\Performance\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CreteKeyResultsRequest extends FormRequest { /** * Get the validation rules that apply to the request. */ public function rules(): array { $id = request()->id; return [ 'name' => [ 'required', 'unique:key_results_metrics,name,'.$id.',id,company_id,' . company()->id, ], ]; } /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } }
Copyright ©2021 || Defacer Indonesia