vercel-community / php

🐘 PHP Runtime for ▲ Vercel Serverless Functions (support 7.4-8.3)

Home Page:https://php.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot run @php artisan command in composer script(s)

kresnasatya opened this issue · comments

Hi @f3l1x, When I deploy Laravel project version 8.x and run command @php artisan migrate --force in composer script(s) it get error message like this:

In Application.php line 690:
Class 'Facade\Ignition\IgnitionServiceProvider' not found

I check in vercel log deployment I don't see that the package facade/ignition installed. The package facade/ignition is located in require-dev composer.json. Is that possible to run composer install include required-dev package?

Hi. Dev dependencies are not installed.

Noted, thanks @f3l1x. I think I will run artisan command from Laravel Controller instead of run in vercel composer script.