app/Http/Requests/Users/StoreUserRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'StrUserID'     => ['required', 'string', 'max:250', 'without_spaces', 'unique:TB_User'],
            'email'         => ['required', 'string', 'email', 'max:250', 'unique:TB_User'],
            'password'      => ['required', 'string', 'confirmed'],
            'admin'         => ['required'],
        ];
    }
public function rules ( ) { return [ 'StrUserID' => [ 'required' , 'string' , 'max:250' , 'without_spaces' , 'unique:TB_User' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:250' , 'unique:TB_User' ] , 'password' => [ 'required' , 'string' , 'confirmed' ] , 'admin' => [ 'required' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// 'name'       => ['required', 'string', 'max:250'], // 'ban'       => ['required'], // 'gender'    => ['required'], // 'avatar'    => ['nullable', 'mimes:jpg,jpeg,bmp,png'],