Laravel 5 command php artisan... Parse error: syntax error, unexpected ':'

I was working on composer and perfect. with artisan methods I created many things.

then he was working on routes and wanted to create a Controller.

php artisan make: controller UsersController

and displays the following error

[Symfony \ Component \ Debug \ Exception \ FatalThrowableError]
Parse error: syntax error, unexpected ':'

I wanted to try commands before if they worked and did not work

you uninstall and install composer and error everywhere, not to update, install etc.

always appears the error ':'':'':'':'

[Symfony \ Component \ Debug \ Exception \ FatalThrowableError]
Parse error: syntax error, unexpected ':'

thank you for your help

Upvotes: 0

Views: 2747

Answers (1)

alaboudi
alaboudi

Reputation: 3413

I think its due to the space between 'make:' and 'controller'. I generally use 'php artisan make:controller UserController'.

Upvotes: 0

Related Questions