Support the ongoing development of Laravel.io →
Installation Configuration

Hello everyone!

I just started with Laravel in my Mac and it seems well. When I go to my Laravel localhost domain the message "It works" appears. But I see that the home page hello.php does not contain that text. Where is it?

On the other hand, if I create a new route, it always returns 404 pages. I think is the same problem. Or not?

I have not installed Laravel in the default folder of MAMP. That's not a problem, right?

Thanks!

Last updated 2 years ago.
0

I don't use MAMP, but if you're pointing to just the laravel folder that's your problem, you should be pointing to the public folder.

MAMPDIR/laravel/public

Last updated 2 years ago.
0

Good try! But on http://local.project/public only appears "Not Found" message...

Last updated 2 years ago.
0

I'm having a similar problem and haven't been able to find a concrete answer anywhere on the web. Everyone just defaults to "use Vagrant."

Last updated 2 years ago.
0

It has nothing to do with the folder you installed it in.

You should see "You have arrived" with the Laravel logo when everything is executed properly.

Just run MAMP which will run on port 8000.

Then go to localhost:8000 and the page should appear.

What I do is just use the CLI or terminal and point the server to any port except the mysql default

Change directory to whatever directory your root app is in

cd/whatever

then

php -S localhost:8877 -t /public

But you can easily remove the public directory so your app will show as localhost:8000/app

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.

© 2025 Laravel.io - All rights reserved.