Skip to content

Error on Laravel 5 : php artisan serve #349

@patriciorasquetti

Description

@patriciorasquetti

Hi everyone, I'm Patricio from Argentina.
I'm new in Laravel 5, and I'm having an error when I try to excecute php artisan serve.
The problem appeared after trying to unsuccessfully install compose require intervention/image, with the following error : Using version ^2.3 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

Illuminate\Foundation\ComposerScripts::postUpdate
php artisan optimize
[ErrorException]

The use statement with non-compound name 'Image' has no effect

Script php artisan optimize handling the post-update-cmd event returned with an error

Installation failed, reverting ./composer.json to its original content.

[RuntimeException]

Error Output:

Now when I try to run php artisan serve, I get this error: (Please can anyone help me?)
[Symfony\Component\Debug\Exception\FatalThrowableError]

Parse error: syntax error, unexpected ';', expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \ (T_NS_SEPARATOR)

The problem is that the error does not describe where that typo is. Does that wrong installation have something to do with the artisan error, or you can tell for sure that is it just a typo somewhere coused by me according to that error?
Thanks in advance.-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions