luminee / chariot
Run chariot like artisan, and support project and db connection
v0.0.2
2021-03-26 06:50 UTC
Requires
- php: >=7.1
README
Installation
composer require luminee/chariot
- write
ChariotServiceProvider::class
onapp.php
php artisan vendor:publish
- make
.conn.conf.php
according.conn.conf.php.example
- change config in
config/chariot.php
Make script file
- example : you want to make command
init:user
forproject
in moduleuser
- make file
InitUser.php
inapp/Console/Commands/Project/User
(according to configscript_namespace
in chariot.php) - file looks like:
use Luminee\Chariot\Core\Command; class Init extends Command { protected $signature = 'init:user'; public function run(){ } }
Run script
- you can run script like
php chariot project.user.init:user.dev --run
to run it on dev connection