Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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)


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


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



.htaccess or change landing to index?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(