'How to use MAMP as local host so that when I enter route ```my-app.localhost/admin``` , it works
I use Dell Windows 11. I have a php & larval project called "my-app". And now I use MAMP as its local host.
What I need is that, when I type in the URL, for example enter my-app.localhost/admin/ in the search bar, the webpage should display the content related to show. --> i.e. display what my php coding is doing --> I'm not open one specific php file, I am trying to simulate what user would do. For example, user enter my-project/login, it would display a login page. Not my-project/login.php
However, it does not work.
Step 2 Click "Open Webstart page" and modify my $user/$password...

Step 3 Enter my route and it does not work

Another try Put my project folder under the location of htdoc --> Still not work

I believe it's because that I need to have a login page first
http://localhost:8888/C:/MAMP/htdocs/my-app/app/Http/Controllers/Admin/ActionController.php

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


