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/UpdateUserData.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",
     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",
    3030            "avatar" => "mimes:jpeg,png,gif|max:5000",
    3131        ];
Note: See TracChangeset for help on using the changeset viewer.