Checking Laravel version

Published 2 months ago by davy_yg

How to check laravel version?

C:\xampp\htdocs\soulfy_repo\framework>php artisan --version

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

C:\xampp\htdocs\soulfy_repo\framework>

Why it does not work?

ovindu

try

php artisan -V

make sure you are in the root of your laravel project.

this one also working for me!

php artisan --version
celienboillat

You have a typo somewhere in your files. Typos may sometimes prevent you from executing artisan commands.

Dhaval_patel

@davy_yg you can check in your project's composer.json

      "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
    }
davy_yg

I figure it out: the framework version -

"laravel/framework": "5.1.*"

Perhaps it's a typo but I where in the file is the typo. How to detect where the typo is?

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

Is it possible to renew the vendors file just by typing code in php artisan?

tisuchi
tisuchi
2 months ago (262,085 XP)

Its because you use ) instead of ] in somewhere. Just check your last update in your controller or model.

FYI: if you didn't change much, than just check in all the array's where you have updated lastly.

Snapey
Snapey
2 months ago (680,035 XP)

look in the laravel log files. The error location will be there.

Empty the log first, then execute the artisan command.

davy_yg

I do not understand which log file.

I have two folders:

storage/logs/laravel.log

storage/framework/views/

Which folder do I need to empty?

And where to check the error location?

Snapey
Snapey
2 months ago (680,035 XP)

this is a log file: storage/logs/laravel.log

this is a folder full of compiled views: storage/framework/views/

does that help?

Dhaval_patel

@davy_yg I would suggest if you do not know which vendor package you have updated then you can delete entire vendor folder and re-download all package using

composer install

problem solved?

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