Added the ability to dynamically translate on the project website.

This commit is contained in:
2024-04-22 23:52:04 +05:00
parent a648ba3db9
commit 491249c8d8
55 changed files with 867 additions and 119 deletions

View File

@@ -11,11 +11,8 @@ return Application::configure(basePath: dirname(__DIR__))
commands: __DIR__.'/../routes/console.php',
health: '/up',
then: function () {
Route::middleware([\App\Http\Middleware\ProjectDomain::class])->group(base_path('routes/web-project.php'));
Route::middleware([
\App\Http\Middleware\ProjectDomain::class,
\App\Http\Middleware\Project::class,
])
Route::middleware(['web', \App\Http\Middleware\ProjectDomainAndLanguage::class])->group(base_path('routes/web-project.php'));
Route::middleware(['web', \App\Http\Middleware\ProjectAndLanguage::class])
->prefix('project/{project}')
->as('project.')
->group(base_path('routes/web-project.php'));