name : 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;
    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password