mercredi 25 avril 2018

How to run artisan outside of Laravel?

Is it possible to run Artisan commands from a script that is not part of Laravel?

How can I import artisan into my script?

<?php

 Artisan::call('some:command');

This script will is not part of Laravel and just a regular old php file. My question is, how can I import Artisan into my script?

My final goal, is to automate the installation of my app, I need to run a migrations, seeds and a couple other things.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2vJDKnm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire