akalongman / akalongman/laravel-multilang
Route [welcome] not defined. (View: C:\xampp\htdocs\blog\resources\views\welcome.blade.php)
Open
- 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
Assessment
This issue has not been assessed yet.