Changeset 24a616f for app/Http/Requests


Ignore:
Timestamp:
10/13/21 15:44:57 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
120759b
Parents:
194a359
Message:

added documents crud, added last_seen_to_user, edited views

Location:
app/Http/Requests/Dashboard
Files:
2 added
2 edited

Legend:

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

    r194a359 r24a616f  
    3030            "email" => "required|string|email|max:255|unique:users,email",
    3131            "username" => "required|min:8|unique:users,username",
    32             "userRole" => "required|exists:roles,id"
     32            "userRole" => "required|exists:roles,id",
     33            "avatar" => "mimes:jpeg,png,gif|max:5000",
    3334        ];
    3435    }
  • app/Http/Requests/Dashboard/UpdateUserRequest.php

    r194a359 r24a616f  
    3030            "email" => "required|string|email|max:255|unique:users,email,$this->id,id",
    3131            "username" => "required|min:8|unique:users,username,$this->id,id",
    32             "userRole" => "required|exists:roles,id"
     32            "userRole" => "required|exists:roles,id",
     33            "avatar" => "mimes:jpeg,png,gif|max:5000",
    3334        ];
    3435    }
Note: See TracChangeset for help on using the changeset viewer.