validating tld throws error in laravel 4.2.8

Issue #1 closed
Tim Kaufmann created an issue

While trying to validate a tld, Laravel throws the following error:

Missing argument 1 for Hampel\Validate\Laravel\TldCache::Hampel\Validate\Laravel{closure}(), called in /Users/tim/Sites/fooapp/vendor/laravel/framework/src/Illuminate/Cache/Repository.php on line 131 and defined

BTW: When app lang is set to "de" instead of "en", hampel validator stumbles over the missing translation file.

Comments (5)

  1. Simon Hampel repo owner

    Try the latest version - turns out I was using a function call from Illuminate/Filesystem which was removed in 4.1 !!

    I've released a new version today - same functionality.

    Will look at the language issue - it's possible I'm not handling translation correctly.

  2. Simon Hampel repo owner

    I wonder if you should perhaps set a fallback language?

    http://laravel.com/docs/localization#language-files

    "You may also configure a "fallback language", which will be used when the active language does not contain a given language line. Like the default language, the fallback language is also configured in the app/config/app.php configuration file:"

    'fallback_locale' => 'en',

    I think this was added in Laravel 4.1 ... I wasn't even aware of it until I checked the docs just now.

  3. Simon Hampel repo owner

    Pretty sure this is fixed in the latest version and the language issue should be solved using a fallback_locale in the config.

  4. Tim Kaufmann reporter

    tim@arthur:~/Sites/foo/composer update Loading composer repositories with package information Updating dependencies (including require-dev) - Removing hampel/validate (2.0.4) - Installing hampel/validate (2.1.1) Downloading: 100%

    Writing lock file Generating autoload files Generating optimized class loader

    Unfortunately the error persists:

    Missing argument 1 for Hampel\Validate\Laravel\TldCache::Hampel\Validate\Laravel{closure}(), called in /Users/tim/Sites/foo/vendor/laravel/framework/src/Illuminate/Cache/Repository.php on line 131 and defined

  5. Log in to comment