This commit is contained in:
2025-10-22 20:08:22 +05:00
commit 736e3bef18
2573 changed files with 120385 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Modules\BaseLocale\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
class BaseLocaleController extends Controller
{
/**
* Invoke the controller
*/
public function index(string $locale): RedirectResponse
{
if (array_key_exists($locale, baseLocales())) {
session()->put('locale', $locale);
}
return safe_back();
}
}