<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateProfileImageArtistRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return ['profile_image' => 'required|mimes:jpeg,bmp,png|max:19000'];
}
/**
* Get the error messages for the defined validation rules.
*
* @return array
*/
public function messages()
{
return ['profile_image.max' => 'The profile image may not be greater than 19MB.'];
}
}