mercredi 21 novembre 2018

Object of class Illuminate\Routing\Route could not be converted to string

I'm trying to do something very simple.

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

I just want to it to load the welcome view and change the URI to /welcome. However, as you can see it keeps throwing the error Object of class Illuminate\Routing\Route could not be converted to string.

I haven't touched Laravel in a minute and am kind of doing a refresher and tried to set up a simple site. I may be missing something totally obvious but I have no idea what it could be.

Any help would be much appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire