Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
app /
JsonApi /
V1 /
Users /
Delete
Unzip
Name
Size
Permission
Date
Action
Adapter.php
1010
B
-rwxrwxrwx
2022-04-21 13:43
Authorizer.php
2.21
KB
-rwxrwxrwx
2022-04-21 13:43
Schema.php
866
B
-rwxrwxrwx
2022-04-21 13:43
Validators.php
1.98
KB
-rwxrwxrwx
2022-04-21 13:43
Save
Rename
<?php namespace App\JsonApi\V1\Users; use Illuminate\Validation\Rule; use CloudCreativity\LaravelJsonApi\Rules\HasMany; use CloudCreativity\LaravelJsonApi\Validation\AbstractValidators; class Validators extends AbstractValidators { /** * The include paths a client is allowed to request. * * @var string[]|null * the allowed paths, an empty array for none allowed, or null to allow all paths. */ protected $allowedIncludePaths = []; /** * The sort field names a client is allowed send. * * @var string[]|null * the allowed fields, an empty array for none allowed, or null to allow all fields. */ protected $allowedSortParameters = ['name', 'email', 'created_at']; /** * The filters a client is allowed send. * * @var string[]|null * the allowed filters, an empty array for none allowed, or null to allow all. */ protected $allowedFilteringParameters = ['name', 'email']; /** * Get resource validation rules. * * @param mixed|null $record * the record being updated, or null if creating a resource. * @return array */ protected function rules($record, array $data): array { if ($record) { return [ 'id' => 'not_in:1', 'name' => 'sometimes', 'email' => [ 'sometimes', 'email', Rule::unique('users')->ignore($record->id) ], 'password' => 'sometimes|confirmed' ]; } return [ 'name' => 'required', 'email' => [ 'required', 'email', Rule::unique('users') ], 'password' => 'required|confirmed' ]; } /** * Get query parameter validation rules. * * @return array */ protected function queryRules(): array { return []; } }