Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

swist's avatar
Level 11

php artisan test is not available after updating to 7.0

Hi,

I updated Laravel to 7.0 and everything works fine, php artisan -V returns Laravel Framework 7.0.4, new Str class works fine but there is no php artisan test command.

Do you have an idea why?

Here is php artisan output:

php artisan output

0 likes
12 replies
swist's avatar
Level 11

Yes, I said it and you can see it on the top of php artisan command output :)

jlrdw's avatar

Not framework, laravel. The two are not the same. See my link and in that there's another guide.

1 like
swist's avatar
Level 11

Hmm, I'm not sure what do you mean. I updated in composer laravel/framework but how can I update Laravel? I don't have laravel/laravel in my composer.json.

I was following https://laravel.com/docs/7.x/upgrade page and after all changes to files + dependencies -> composer update.

jlrdw's avatar
jlrdw
Best Answer
Level 75

Laravel has to be manually updated.

You have to read the upgrade guide and also compare the new and the old Taylor mentions this difference in the upgrade guide.

From doc's

Quote

Miscellaneous

We also encourage you to view the changes in the laravel/laravel GitHub repository. While many of these changes are not required, you may wish to keep these files in sync with your application. Some of these changes will be covered in this upgrade guide, but others, such as changes to configuration files or comments, will not be. You can easily view the changes with the GitHub comparison tool and choose which updates are important to you.

Unquote

If something isn't working after upgrade, you probably missed something in the upgrade guide.

That's why I use a compare tool so I don't miss anything.

But that's just my preference.

1 like
jlrdw's avatar

Glad you got it, and yes when "manually updating" it's easy to miss stuff. I usually just inatall a new app and migrate code over, but this time I decided to update / upgrade.

Best of Luck and Godspeed in your programming career.

1 like
vbasky's avatar

What was needed to run php artisan test. I am running into the same issue. I have ran composer update and manually changed every single file by doing the diff. I am still running into issues

imamhsn195's avatar

How can I upgrade laravel 5.3 project to laravel 7.0 ? Please, someone help me.

jlrdw's avatar

Use https://laravelshift.com/

Otherwise you need to go through each upgrade

  • 5.3 to 5.4
  • 5.4 to 5.5 etc

Try installing a new project and migrate your code over.

Read the various upgrade guides to see any differences you need to know about.

1 like
swist's avatar
Level 11

For me the issue was nunomaduro/collision - I didn't have this package in my composer.json. After: composer require nunomaduro/collision:^4.1 a test command appeared.

1 like

Please or to participate in this conversation.