check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'title' => 'required', 'picture' => 'sometimes|image|mimes:jpeg,png,jpg|max:2048|dimensions:width=1920,height=591', 'alt_text_picture' => 'required|max:255', ]; } }