I want to change the first page load, can I do that?
- Can I change my homepage to [/] without going to [/login] ?
I would like you to go to the landing page before going to the Login page.
- In your example project in resources/view I would like to split Folders into
- resources/view/backend/[your example project demo1]
- resources/view/fontend/[It's my project]
Want to know if you can do this?
I'm sorry my english is not good
thank you
klingofmonster@gmail.com (charin)
Replies (2)
.htaccess or change landing to index?
Hi,
You can fix it in the route file; routes/web.php. Add condition where the path is empty, exclude the page from auth middleware.
if (!empty($val['path']) ...
array_walk($menu, function ($val) {
if (isset($val['path'])) {
$route = Route::get($val['path'], [PagesController::class, 'index']); // Exclude documentation from auth middleware
if (!empty($val['path']) && !Str::contains($val['path'], 'documentation')) {
$route->middleware('auth');
}
}
});
Thanks