Support the ongoing development of Laravel.io →
Installation Configuration Views
Last updated 2 years ago.
0

Since views are intended to be composed with a dataset, it is intentionally blocked from the public access.

You have three options IMO.

  1. Create a static controller, which serves static pages.
  2. If you don't want that or have just a few static pages, a simple route should be fine [source code below. somehow I can't paste it here]
  3. If the page is truly a static page, then..place it in the public directory.

I personally recommend #2 if you have only few.

Route::('/about/company', function(){
	return View::make('admin.company');
});
Last updated 2 years ago.
0

Thank you very much it works for me. God Bless you man!!!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.