<?php

namespace TypiCMS\Modules\Core\Http\Middleware;

use Closure;

class SetTranslatableFallbackLocaleToNull
{
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        config(['app.fallback_locale' => null]);

        return $next($request);
    }
}

<?php

namespace TypiCMS\Modules\Core\Http\Middleware;

use Closure;

class SetTranslatableFallbackLocaleToNull
{
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        config(['app.fallback_locale' => null]);
        config(['translatable.fallback_locale' => null]);

        return $next($request);
    }
}

Disable translatable fallback locale in admin
Disable translatable fallback locale in admin
