app/Http/Controllers/ProfilesController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @param array $data @return \ Illuminate \ Contracts \ Validation \ Validator
public function profile_validator(array $data)
    {
        return Validator::make($data, [
            'first_name'            => 'required',
            'last_name'             => 'required',
            'empresa'               => 'required',
            'bio'                   => '',
            'phone'                 => '',
            'skype_user'            => '',
            'user_profile_pic'      => 'image'
        ],[
            'first_name.required'       => 'Ingrese un nombre',
            'last_name.required'        => 'Ingrese un apellido',
            'empresa.required'          => 'Ingrese el nombre de su empresa',
            'user_profile_pic.image'    => 'El archivo debe ser una imagen'
        ]);
    }
public function profile_validator ( array $ data ) { return Validator :: make ( $ data , [ 'first_name' => 'required' , 'last_name' => 'required' , 'empresa' => 'required' , 'bio' => '' , 'phone' => '' , 'skype_user' => '' , 'user_profile_pic' => 'image' ] , [ 'first_name.required' => 'Ingrese un nombre' , 'last_name.required' => 'Ingrese un apellido' , 'empresa.required' => 'Ingrese el nombre de su empresa' , 'user_profile_pic.image' => 'El archivo debe ser una imagen' ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .