mercredi 18 mai 2016

Laravel 5 routes not working

I have a problem with routes. Maybe i am some missing something in the configuration. I can only route to one file.

Route::get('/', function () {
    return view('welcome');
});

Route::get('/test', function () {
    return view('welcome');
});

Those routes are working perfectly, but when i change the file to welcome2 for examle it shows HTTP ERROR 500 so the route

Route::get('/test', function () {
    return view('welcome2');
});

is not working. The file welcome 2 is a renamed copy of welcome and it's located in the same directory.

mod_rewrite is enabled.

.htaccess is working also

Any suggestions?

Thanks in advance.



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

Aucun commentaire:

Enregistrer un commentaire