app/Http/Requests/SpotRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name'           => 'required',
            'prefecture'     => 'required',
            'city'           => 'required',
            'house_number'   => 'required',
            'image_path'     => 'mimes:jpeg,jpg,png|max:1024',
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'prefecture' => 'required' , 'city' => 'required' , 'house_number' => 'required' , 'image_path' => 'mimes:jpeg,jpg,png|max:1024' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .