for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Propaganistas\LaravelIntl\Concerns;
trait WithLocales
{
/**
* The current locale.
*
* @var string $locale
*/
protected $locale;
protected $fallbackLocale;
* Get the current locale.
* @return string
public function getLocale()
return $this->locale;
}
* Set the current locale.
* @param $locale
* @return $this
public function setLocale($locale)
$this->locale = $locale;
return $this;
* Get the fallback locale.
public function getFallbackLocale()
return $this->fallbackLocale;
* Set the fallback locale.
public function setFallbackLocale($locale)
$this->fallbackLocale = $locale;