whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
Modules
/
RestAPI
/
Http
/
Requests
/
Designation
/
Upload File:
files >> //home/kckglobal/www/portal/Modules/RestAPI/Http/Requests/Designation/DeleteRequest.php
<?php namespace Modules\RestAPI\Http\Requests\Designation; use Modules\RestAPI\Http\Requests\BaseRequest; class DeleteRequest extends BaseRequest { /** * @return bool * * @throws \Froiden\RestAPI\Exceptions\UnauthorizedException */ public function authorize() { $user = api_user(); return in_array('employees', $user->modules) && $user->hasRole('admin'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ ]; } }
Copyright ©2021 || Defacer Indonesia