Route error

Posted 1 year ago by csbonito

Hello I'm new to Laravel and I already got a Tiny problem

When Im declaring my route:

Route::get('statisticB', [ 'uses' => '[email protected]', 'as' => 'DocMatri' ]);

and I list the routes a I have (php Artisan route:list)

I get the next error:

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected 'list' (T_LIST)

I run php Artisan route:list -v and get the same error.

Any ideas whats going on?

Thank you

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.