app/Http/Requests/LinkRequest.php
/**
	 * Get custom messages for validator errors.
	 *
	 * @return array
	 */
Get custom messages for validator errors.
@return array
Get custom messages for validator errors . @return array
public function messages() {
    	return [
    		'name.required' => '名字没有',
		    'link.required' => '链接没有',
	    ];
    }
public function messages ( ) { return [ 'name.required' => '名字没有', 'link.required' => '链接没有', ] ; }
Get custom messages for validator errors.
Get custom messages for validator errors .