Search code examples
phplaravelmamp

Laravel - Cannot access routes in MAMP


I'm developed a project in Laravel and i have work with artisan but now i need to pass the project to MAMP.

So, i copy the project folder and put it in htdocs folder.

For exemple i have a route named /app/groups but now mamp doesn't recognizes this route neither access to css and js files.

How can i solve this problem?

For exemple i'm doing this:

<a href="/app/groups/" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect color">
                  Entrar
                </a>

And i works with artisan but now with mamp not.

Thank you


Solution

  • Check below, mybe this help to test your routes, I think you moved it to subfolders.

    <a href="{{url('/')}}/app/groups/" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect color"> Entrar</a>

    Hope this helps .