Ignore:
Timestamp:
10/17/21 18:39:50 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
bd9e8e3
Parents:
120759b
Message:

added validation to blades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Requests/Dashboard/UpdateUserRequest.php

    r120759b rd795fa6  
    2525    {
    2626        return [
    27             "name" => "required|alpha|min:2|max:255",
    28             "surname" => "required|alpha|min:2|max:255",
    29             "mobile_number" => "required|unique:users,mobile_number,$this->id,id",
    30             "email" => "required|string|email|max:255|unique:users,email,$this->id,id",
    31             "username" => "required|min:8|unique:users,username,$this->id,id",
     27            "name" => "required|alpha|min:2|max:30",
     28            "surname" => "required|alpha|min:2|max:30",
     29            "phone_number" => "required|unique:users,phone_number,$this->id,id",
     30            "email" => "required|string|email|max:50|unique:users,email,$this->id,id",
     31            "username" => "required|min:5|unique:users,username,$this->id,id",
    3232            "userRole" => "required|exists:roles,id",
    3333            "avatar" => "mimes:jpeg,png,gif|max:5000",
Note: See TracChangeset for help on using the changeset viewer.