2017 © Pedro Peláez
 

library jjaj

For Jordan, Jerry, Alex and Jackie

image

daydreamlab/jjaj

For Jordan, Jerry, Alex and Jackie

  • Friday, July 27, 2018
  • by yujungtsai
  • Repository
  • 3 Watchers
  • 0 Stars
  • 87 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JJAJ

jjaj:mc

This command jjaj:mc means that it will generate Model(m) and Controller(c). The following directories and files will be generated:, (*1)

  • Controller Path : app/Http/Controllers/API/{name}
  • Model Path: app/Models/{name}
  • Repository Path: app/Repositories/
  • Service Path: app/Services/
  • Request Path: app/Http/Requests/
  • Constant Path: app/constants/, (*2)

    php artisan jjaj:mc {name} {--admin} {--front} {--component=}, (*3)

Example

php artisan jjaj:mc Category --admin --front --component=Cms

params:

  • name (required), (*4)

    Model name. Plase don't use plural form(ex: ~~Users~~)., (*5)

  • --admin (optional), (*6)

    This param will generate admin model., (*7)

  • --front (optional), (*8)

    This param will generate front model., (*9)

  • --component= (optional), (*10)

    If you want to write you own package, this will help you to generate corresponding files with correct namespace. File path will be in root/packages/{package_name}., (*11)

jjaj:clear

php artisan jjaj:clear

This command will run the following three commands:, (*12)

php artisan config:clear
php artisan cache:clear
php artisan view:clear

jjaj:delete

This Command will help you to delete all files generated by jjaj:mc command., (*13)

jjaj:refresh

This command will run the following two commands:, (*14)

php artisan migrate:refresh
php artisan passport:install

jjaj:test

This Command will help you to generate tesing files., (*15)

php artisan jjaj:test {name} {--unit} {--feature} {--type=} {--admin} {--front}

Example

php artisan jjaj:test --unit --type=service --admin --front

params:

  • name (required), (*16)

    Model name. Plase don't use plural form(ex: ~~Users~~)., (*17)

  • --admin (optional), (*18)

    This param will generate admin model test., (*19)

  • --front (optional), (*20)

    This param will generate front model test., (*21)

  • --type= (optional), (*22)

    There are three type you can choose!, (*23)

    • controller
    • model
    • repository
    • service

The Versions

27/07 2018

dev-master

9999999-dev

For Jordan, Jerry, Alex and Jackie

  Sources   Download

by Jordan Tsai