lundi 6 février 2017

Laravel content not being served from routes

I have a Laravel 5.0 API which I'm trying to access. Currently, it's serving the public/index.php it seems without actually bootstrapping the applications and routes.

enter image description here

What should be shown is the text from the route:

$router->get('/', function () { return 'Welcome to the DDE API ver 1.0. Be sure to use /1.0 Version Prefix!'; });`

My Apache directory index in httpd.conf correctly provides index.php as the root file to serve:

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

And my Apache sites.conf correcly specifies the root:

<VirtualHost *:80>
   ServerName dde-api.localhost
   DocumentRoot /Users/danniu/Sites/DDE2/dde-api/public
</VirtualHost> 

Why isn't Laravel bootstrapping the application and serving the content from the routes?

Notes: If I change that index.php file at all, none of the changes are rendered in the browser.



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

Aucun commentaire:

Enregistrer un commentaire