Path : /var/www/clients/client0/web25/web/app/Rules/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/app/Rules/Slug.php |
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; class Slug implements Rule { public function __construct() { // } public function passes($attribute, $value) { return preg_match('/^[a-z0-9]+(?:-[a-z0-9]+)*$/', $value); } public function message() { return trans('validation.slug'); } }