luminee/chariot

Run chariot like artisan, and support project and db connection

v0.0.2 2021-03-26 06:50 UTC

This package is auto-updated.

Last update: 2024-05-26 14:25:17 UTC


README

Installation

  • composer require luminee/chariot
  • write ChariotServiceProvider::class on app.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 for project in module user
  • make file InitUser.php in app/Console/Commands/Project/User (according to config script_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