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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.