Support the ongoing development of →
Laravel Middleware
Last updated 2 years ago.

Your document root should be the directory public where every request should be handled by index.php (so the file public/index.php )

With the route example from the documentation in your routes file:

use Illuminate\Support\Facades\Route;

Route::get('/greeting', function () {
    return 'Hello World';

And you visit http://yourdomain.tld/greeting you will get Hello World.

ramsey555 liked this reply


Sign in to participate in this thread!


Your banner here too?

Ramsy ramsey555 Joined 7 Oct 2021


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.