---
title: "Discussion on \"Laravel's HasLocalePreference: Writing PHPUnit Tests for Notifiable's Default Locale\" | Hashnode"
description: "Discussion on \"Laravel's HasLocalePreference: Writing PHPUnit Tests for Notifiable's Default Locale\". Background: How to define default Locale for Notifiable\nSince Laravel 5.7.7, you can set the preferred locale on a Notifiable. In other words, you can define the default locale that will be used for every Notification (or email) sent to a given User ..."
url: "https://hashnode.com/posts/laravels-haslocalepreference-writing-phpunit-tests-for-notifiables-default-locale/64e8dea34608a24942896683"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel's HasLocalePreference: Writing PHPUnit Tests for Notifiable's Default Locale](https://annissimo.com/laravels-haslocalepreference-writing-phpunit-tests-for-notifiables-default-locale?utm_source=hashnode&utm_medium=feed)

Background: How to define default Locale for Notifiable Since Laravel 5.7.7, you can set the preferred locale on a Notifiable. In other words, you can define the default locale that will be used for every Notification (or email) sent to a given User ...

Aug 25, 2023 · 2 min read · annissimo.com  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#testing](https://hashnode.com/tag/testing)
-   [#phpunit](https://hashnode.com/tag/phpunit)
-   [#php](https://hashnode.com/tag/php)
-   [#localization](https://hashnode.com/tag/localization)

## Written by

[Amadeusz Annissimo](https://hashnode.com/@amade)

@amade · Tallinn, Estonia

  
[View profile](https://hashnode.com/@amade)

Technical Co-Founder

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
