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

lemmon's avatar
Level 28

php artisan not working

After I create a project using either "laravel new blog" or: composer create-project --prefer-dist laravel/laravel blog "5.8.*" so version 6 or version 5.8 and then I run php artisan list or any artisan command I get the stuff below

henry_lemmon@DESKTOP-L237LRN MINGW64 /c/wamp64/www/vue-app
$ php artisan list
Laravel Framework ?[32m5.8.35?[39m

?[33mUsage:?[39m
  command [options] [arguments]

?[33mOptions:?[39m
  ?[32m-h, --help?[39m            Display this help message
  ?[32m-q, --quiet?[39m           Do not output any message
  ?[32m-V, --version?[39m         Display this application version
  ?[32m    --ansi?[39m            Force ANSI output
  ?[32m    --no-ansi?[39m         Disable ANSI output
  ?[32m-n, --no-interaction?[39m  Do not ask any interactive question
  ?[32m    --env[=ENV]?[39m       The environment the command should run under
  ?[32m-v|vv|vvv, --verbose?[39m  Increase the verbosity of messages: 1 for norm
al output, 2 for more verbose output and 3 for debug

?[33mAvailable commands:?[39m
  ?[32mclear-compiled?[39m       Remove the compiled class file
  ?[32mdown?[39m                 Put the application into maintenance mode
  ?[32mdump-server?[39m          Start the dump server to collect dump informati
on.
  ?[32menv?[39m                  Display the current framework environment
  ?[32mhelp?[39m                 Displays help for a command
  ?[32minspire?[39m              Display an inspiring quote
  ?[32mlist?[39m                 Lists commands
  ?[32mmigrate?[39m              Run the database migrations
  ?[32moptimize?[39m             Cache the framework bootstrap files
  ?[32mpreset?[39m               Swap the front-end scaffolding for the applicat
ion
  ?[32mserve?[39m                Serve the application on the PHP development se
rver
  ?[32mtinker?[39m               Interact with your application
  ?[32mup?[39m                   Bring the application out of maintenance mode
 ?[33mapp?[39m
  ?[32mapp:name?[39m             Set the application namespace
 ?[33mauth?[39m
  ?[32mauth:clear-resets?[39m    Flush expired password reset tokens
 ?[33mcache?[39m
  ?[32mcache:clear?[39m          Flush the application cache
  ?[32mcache:forget?[39m         Remove an item from the cache
  ?[32mcache:table?[39m          Create a migration for the cache database table

 ?[33mconfig?[39m
  ?[32mconfig:cache?[39m         Create a cache file for faster configuration lo
ading
  ?[32mconfig:clear?[39m         Remove the configuration cache file
 ?[33mdb?[39m
  ?[32mdb:seed?[39m              Seed the database with records
 ?[33mevent?[39m
  ?[32mevent:cache?[39m          Discover and cache the application's events and
 listeners
  ?[32mevent:clear?[39m          Clear all cached events and listeners
  ?[32mevent:generate?[39m       Generate the missing events and listeners based
 on registration
  ?[32mevent:list?[39m           List the application's events and listeners
 ?[33mkey?[39m
  ?[32mkey:generate?[39m         Set the application key
 ?[33mmake?[39m
  ?[32mmake:auth?[39m            Scaffold basic login and registration views and
 routes
  ?[32mmake:channel?[39m         Create a new channel class
  ?[32mmake:command?[39m         Create a new Artisan command
  ?[32mmake:controller?[39m      Create a new controller class
  ?[32mmake:event?[39m           Create a new event class
  ?[32mmake:exception?[39m       Create a new custom exception class
  ?[32mmake:factory?[39m         Create a new model factory
  ?[32mmake:job?[39m             Create a new job class
  ?[32mmake:listener?[39m        Create a new event listener class
  ?[32mmake:mail?[39m            Create a new email class
  ?[32mmake:middleware?[39m      Create a new middleware class
  ?[32mmake:migration?[39m       Create a new migration file
  ?[32mmake:model?[39m           Create a new Eloquent model class
  ?[32mmake:notification?[39m    Create a new notification class
  ?[32mmake:observer?[39m        Create a new observer class
  ?[32mmake:policy?[39m          Create a new policy class
  ?[32mmake:provider?[39m        Create a new service provider class
  ?[32mmake:request?[39m         Create a new form request class
  ?[32mmake:resource?[39m        Create a new resource
  ?[32mmake:rule?[39m            Create a new validation rule
  ?[32mmake:seeder?[39m          Create a new seeder class
  ?[32mmake:test?[39m            Create a new test class
 ?[33mmigrate?[39m
  ?[32mmigrate:fresh?[39m        Drop all tables and re-run all migrations
  ?[32mmigrate:install?[39m      Create the migration repository
  ?[32mmigrate:refresh?[39m      Reset and re-run all migrations
  ?[32mmigrate:reset?[39m        Rollback all database migrations
  ?[32mmigrate:rollback?[39m     Rollback the last database migration
  ?[32mmigrate:status?[39m       Show the status of each migration
 ?[33mnotifications?[39m
  ?[32mnotifications:table?[39m  Create a migration for the notifications table
 ?[33moptimize?[39m
  ?[32moptimize:clear?[39m       Remove the cached bootstrap files
 ?[33mpackage?[39m
  ?[32mpackage:discover?[39m     Rebuild the cached package manifest
 ?[33mqueue?[39m
  ?[32mqueue:failed?[39m         List all of the failed queue jobs
  ?[32mqueue:failed-table?[39m   Create a migration for the failed queue jobs da
tabase table
  ?[32mqueue:flush?[39m          Flush all of the failed queue jobs
  ?[32mqueue:forget?[39m         Delete a failed queue job
  ?[32mqueue:listen?[39m         Listen to a given queue
  ?[32mqueue:restart?[39m        Restart queue worker daemons after their curren
t job
  ?[32mqueue:retry?[39m          Retry a failed queue job
  ?[32mqueue:table?[39m          Create a migration for the queue jobs database
table
  ?[32mqueue:work?[39m           Start processing jobs on the queue as a daemon
 ?[33mroute?[39m
  ?[32mroute:cache?[39m          Create a route cache file for faster route regi
stration
  ?[32mroute:clear?[39m          Remove the route cache file
  ?[32mroute:list?[39m           List all registered routes
 ?[33mschedule?[39m
  ?[32mschedule:run?[39m         Run the scheduled commands
 ?[33msession?[39m
  ?[32msession:table?[39m        Create a migration for the session database tab
le
 ?[33mstorage?[39m
  ?[32mstorage:link?[39m         Create a symbolic link from "public/storage" to
 "storage/app/public"
 ?[33mvendor?[39m
  ?[32mvendor:publish?[39m       Publish any publishable assets from vendor pack
ages
 ?[33mview?[39m
  ?[32mview:cache?[39m           Compile all of the application's Blade template
s
  ?[32mview:clear?[39m           Clear all compiled view files

0 likes
14 replies
lemmon's avatar
Level 28

I use Windows 10, Git bash, wamp 64bit

I have laravel projects that I have created as recent as a couple of days ago that the artisan commands render correctly. it is only my new projects as of today.

Thank you

lemmon's avatar
Level 28

This is in my composer.lock for laravel 5.8

"symfony/console": "^4.2",

Nakov's avatar

And what is the output of

composer show symfony/console

And compare the version with the projects that is working in, so downgrade to that one.

Follow the issue on GitHub as well, and you will get notified when the issue is fixed. :)

lemmon's avatar
Level 28

I am absolutely using 4.3.5.

I am taking notes.

How do I roll back symfony console? remove the ^ and composer install?

Nakov's avatar

@lemmon Just put specific version and run composer install I believe it should do it.

lemmon's avatar
Level 28

Thank You mr. Nakov. symfony is not listed in package.json. where do I add the specific version?

Nakov's avatar
Nakov
Best Answer
Level 73

@lemmon I think that

composer require symfony/console:4.3.4

should do it.. Let me know :)

3 likes
lemmon's avatar
Level 28

@nakov Thank you for your help and patients Mr. Nakov. Working great.

alexmorghan's avatar

Generally, the vendor directory is not committed to VCS, as such, doing a clone on a standard Laravel app won't include all its dependencies. Once you have cloned, doing composer install (or composer update if you want the latest packages as a developer) will fetch the dependencies and allow your app to work. https://www.westendpress.org/lastpass-vs-1password/

Please or to participate in this conversation.