akalongman / akalongman/laravel-multilang

Route [welcome] not defined. (View: C:\xampp\htdocs\blog\resources\views\welcome.blade.php)

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
54
Forks
15
PR merge metrics
No merged PRs in 30d

Description

When i add two routes in MultiLang::routeGroup in web.php file one is home and second is welcome.

MultiLang::routeGroup(function($router) {
Route::get('home', [IndexController::class, 'home'])->name('home');
Route::get('welcome', [IndexController::class, 'welcome'])->name('welcome');
});

So in IndexController create home method and create welcome.blade.php file.
now in blade file i have defined route('welcome') so it's return this error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.