Search code examples
phpcommand-linelaravelappfog

How to run Laravel artisan command on AppFog?


How to run an artisan command on my Laravel app in AppFog?

I need to run commands like this:

php artisan down
php artisan up

Any idea?


Solution

  • It looks like I can run Artisan commands within my app code, like this:

    Artisan::call('down');
    

    Reference: Laravel Forums