PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
botble
/
platform
/
acl
/
src
/
Http
/
Requests
<?php namespace Botble\ACL\Http\Requests; use Botble\Support\Http\Requests\Request; use Illuminate\Support\Facades\Auth; class UpdatePasswordRequest extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = [ 'password' => 'required|min:6|max:60', 'password_confirmation' => 'same:password', ]; if (Auth::user() && Auth::user()->isSuperUser()) { return $rules; } return ['old_password' => 'required|min:6|max:60'] + $rules; } }
[+]
..
[-] UpdateProfileRequest.php
[edit]
[-] AvatarRequest.php
[edit]
[-] UpdatePasswordRequest.php
[edit]
[-] RoleCreateRequest.php
[edit]
[-] CreateUserRequest.php
[edit]