webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Validation
/
Rules
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
Can.php
1.797KB
edt
ren
DatabaseRule.php
5.398KB
edt
ren
Dimensions.php
2.371KB
edt
ren
Enum.php
1.749KB
edt
ren
ExcludeIf.php
1.022KB
edt
ren
Exists.php
0.428KB
edt
ren
File.php
9.232KB
edt
ren
ImageFile.php
0.496KB
edt
ren
In.php
1.294KB
edt
ren
NotIn.php
1.229KB
edt
ren
Password.php
8.586KB
edt
ren
ProhibitedIf.php
1.034KB
edt
ren
RequiredIf.php
0.938KB
edt
ren
Unique.php
1.583KB
edt
ren
<?php namespace Illuminate\Validation\Rules; use Illuminate\Contracts\Validation\Rule; use Illuminate\Contracts\Validation\ValidatorAwareRule; use Illuminate\Support\Facades\Gate; class Can implements Rule, ValidatorAwareRule { /** * The ability to check. * * @var string */ protected $ability; /** * The arguments to pass to the authorization check. * * @var array */ protected $arguments; /** * The current validator instance. * * @var \Illuminate\Validation\Validator */ protected $validator; /** * Constructor. * * @param string $ability * @param array $arguments */ public function __construct($ability, array $arguments = []) { $this->ability = $ability; $this->arguments = $arguments; } /** * Determine if the validation rule passes. * * @param string $attribute * @param mixed $value * @return bool */ public function passes($attribute, $value) { $arguments = $this->arguments; $model = array_shift($arguments); return Gate::allows($this->ability, array_filter([$model, ...$arguments, $value])); } /** * Get the validation error message. * * @return array */ public function message() { $message = $this->validator->getTranslator()->get('validation.can'); return $message === 'validation.can' ? ['The :attribute field contains an unauthorized value.'] : $message; } /** * Set the current validator. * * @param \Illuminate\Validation\Validator $validator * @return $this */ public function setValidator($validator) { $this->validator = $validator; return $this; } }