Created
March 12, 2018 09:08
-
-
Save yasaryousuf/68674be99e9c4306bbba7b7431237d2b to your computer and use it in GitHub Desktop.
laravel-validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function userValidation($request) | |
{ | |
$request->validate([ | |
'first_name' => 'required|max:25', | |
'last_name' => 'required|max:25', | |
'email' => 'required|max:50', | |
'user_image_url' => 'image|mimes:jpeg,png,jpg,gif,svg|max:1000' | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment