Search code examples
phplaravelfakerlaravel-seeding

Laravel: error when trying to change locale faker to he_IL


When i'm changing my faker locale to he_IL, I get this error:

userName failed with the selected locale. Try a different locale or activate the "intl" PHP extension.

How can i fix it, and what does it mean?


Solution

  • If you're using WAMP, XAMPP, go to your php.ini file and remove the ; to activate the extension:

    ;extension=php_intl.dll

    For ubuntu check this other answer.