Nayana
Nayana

Reputation: 147

Make admin directory be the default directory laravel

How can I make an admin directory be the default directory when website is loaded? I'm using laravel-admin as admin panel and I can access it by console.siteexample.com/admin, but how can I change it to access it only with console.siteexample.com ? Which is the best way to this?

Upvotes: 0

Views: 58

Answers (1)

forbid
forbid

Reputation: 103

Make an index view on the view directory.

and define the home route on the web.php file.

Route::get('/', function () {
return view('index'); });

Upvotes: 2

Related Questions