mercredi 25 novembre 2015

Lumen Routes not working

I am running fresh Lumen installation inside vagrant.

When i access localhost:8080/public it shows the Lumen Welcome Page When i access localhost:8080/public/index.php/hello It works But when i access localhost:8080/public/hello It shows 404 Not Found

My public/.htaccess file is default nothing changed. In my public/index.php file i made the following changes

From

$app->run();

To

$app->run($app['request']);

In my vm i ran following commands

sudo a2enmod rewrite
sudo service apache2 restart

My routes.php file says

$app->get('/', function () use ($app) {
    return $app->welcome();
});
$app->get('/hello', function() {
    return 'Hello World';
});

What is causing this issue trying to find out but no luck :(

Thanks



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1lhTvHw
via IFTTT

Aucun commentaire:

Enregistrer un commentaire