Path : /var/www/clients/client0/web25/web/vendor/spatie/laravel-translatable/src/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/vendor/spatie/laravel-translatable/src/Translatable.php |
<?php namespace Spatie\Translatable; use Closure; class Translatable { /* * If a translation has not been set for a given locale, use this locale instead. */ public ?string $fallbackLocale; /* * If a translation has not been set for a given locale and the fallback locale, * any other locale will be chosen instead. */ public bool $fallbackAny = false; public ?Closure $missingKeyCallback = null; public function fallback( ?string $fallbackLocale = null, ?bool $fallbackAny = false, $missingKeyCallback = null ): self { $this->fallbackLocale = $fallbackLocale; $this->fallbackAny = $fallbackAny; $this->missingKeyCallback = $missingKeyCallback; return $this; } }