-1

Is that any ways to change the url such http://localhost:8080/myproject/advertisements to http://localhost:8080/myproject/admin/advertisements always for every URL. I hide the /public and move the .htaccess to root project.

JohnnyCc
  • 525
  • 1
  • 8
  • 23
  • "I hide the /public and move the .htaccess to root project." You should not be moving the `.htaccess`. You should be pointing your webserver's document root at the `public/` directory. – ceejayoz Jun 23 '17 at 14:22

1 Answers1

1

Add a prefix to your route.

https://laravel.com/docs/5.4/routing#route-groups

Scroll down a bit to the Route Prefixes section

Ru Chern Chong
  • 3,692
  • 13
  • 33
  • 43