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