D
D
Denis Bukreev2017-10-22 17:03:35
Laravel
Denis Bukreev, 2017-10-22 17:03:35

Error when trying to call php artisan - what's the problem?

I enter the command:
php artisan make:model CarMark
I get:

vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

I try
php artisan
and get the same:
vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2017-10-22
@denisbookreev

There are two different versions of php: the one that runs as an Apache module, and the one that's in the CLI. In CLI, judging by your comment, version 5.6, you need to upgrade the console php.
The CLI php version can be checked by typing php -v in the console The php
version of your server can be checked by phpinfo or a similar function for your framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question