Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Help with layouts


Hello,
I'm using the Laravel demo7,
I want to use the same layout as for documentation for the public space of my project but I cannot figure how to do that.

I know this piece of the web.php is disabling the auth but when I try on different folder inside views it does not work

$menu = theme()->getMenu();
array_walk($menu, function ($val) {

if (isset($val["path"])) {
$route = Route::get($val["path"], [PagesController::class, "index"]);

// Exclude documentation from auth middleware
if (!Str::contains($val["path"], "documentation")) {
$route->middleware("auth");
}

// Custom page demo for 500 server error
if (Str::contains($val["path"], "error-500")) {
Route::get($val["path"], function () {
abort(500, "Something went wrong! Please try again later.");
});
}
}
});


How can I achieve that? Or just change the name of documentation.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (14)


Wonderful Content, Now i'm a massive believer for offer suggestions relating to internet websites to make sure you let the web page creators understandthat they’ve incorporated an issue good to make sure you just a couple of!agenolx slot



Document thrilled along with the researching you will designed to makes precise put up impressive. Delightful adventure!data Macau 5D



Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking.Frisco sober living



You might be allowed to submit brands, however, not back links, except if they may be accepted and also about matter.건대호빠



This may be a really good hints mainly that will the ones novices at blogosphere, shorter together with complete information… Kudos meant for posting ours. Extremely important look over report.dallas addiction



This article was written by a real thinking writer. I agree many of the with the solid points made by the writer. I’ll be back.follow ig



I’m prompted while using the surpassing in addition to preachy checklist you give in such very little timing.건축자금대출



To provide a First-time, My group is eternally visiting web based designed for articles and reviews which is in be an aid to all of us. Thanks for your time.San Antonio drug detox



Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanksfootball replay



Compete the great get the job done, As i browse small amount of content articles in this particular websites and even It looks like that your choice of word wide web web log is without a doubt realistic important and allows gotten forums in fabulous tips.what is promo code in 1xbet



Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.ทางเข้า ruay



For a Amateur, We're entirely studying internet to get reports that is with help people. Thanks a ton.Marketing company



Hi,

Both documentation and default page use x-base-layout defined in app/View/Components/BaseLayout.php

In that class, there is a condition. Docs and default pages use different layout files.

layout/docs/master and layout/master

Please check the class and customize it to your requirements.

Thanks



When I put

x-base-layout
/x-base-layout

with no authentification is still user the layout with authenticated page with the ASIDE blank. It is not displaying like the documentation page


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(