SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Docs Laravel-translatable Basic-usage Validation translations

Other versions for crawler v6
    • Introduction
    • Support us
    • Requirements
    • Upgrading
    • Installation & setup
    • Questions and issues
    • Changelog
    • About us

    Basic usage

    • Getting and setting translations
    • Removing translations
    • Replacing translations
    • Querying translations
    • Validation translations
    • Handling missing translations

    Advanced usage

    • Available events
    • Customize the toArray method
    • Usage with factories

Validation translations

If you want to validate an attribute for uniqueness before saving/updating the db, you might want to have a look at laravel-unique-translation which is made specifically for laravel-translatable.

Querying translations
Handling missing translations
Help us improve this page
Mailcoach

Check out our full-featured (self-hosted) email marketing solution

Help us improve this page
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Our office is closed now, email us instead

    Enter a search term to find results in the documentation.