chewei05/crud-generator-template

Traditional Chinese (zh-TW) Templates for crud-generator with Laravel 5.

0.0.3 2019-11-13 07:00 UTC

This package is not auto-updated.

Last update: 2021-10-27 17:13:46 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Traditional Chinese (zh-TW) Templates for CRUD-generator with Laravel 5.
crud-generator 在 Laravel 5 的正體中文(繁體中文)樣板檔.

Requirements

appzcoder/crud-generator: ^v2.0.0

Installation

Open the root directory of your Laravel project in terminal(CLI), and follow the following steps.

  1. Install appzcoder/crud-generator first.
    composer require appzcoder/crud-generator
    
  2. Finish all install steps of appzcoder/crud-generator.
  3. Published crud-generator package's assets.
    php artisan vendor:publish --provider="Appzcoder\CrudGenerator\CrudGeneratorServiceProvider"
    
  4. Turn on custom_template support on config/crudgenerator.php
    'custom_template' => true,
    
  5. Install this package crud-generator-template
    composer require chewei05/crud-generator-template
    

Copy Language Files

Via Yourself

  • Files of templates are in "vendor/chewei05/crud-generator-template/src/crud-generator" directory
  • Copy the folder of templates in the resources/crud-generator folder of your Laravel 5 project.

Via Laravel Service Provider

  1. Add service provider to config/app.php.
    'providers' => [
        ...
        CheweiHu\CRUDGeneratorTemplate\CRUDGeneratorTemplateServiceProvider::class,
    ],
  2. Run composer dump-autoload if composer went wrong.
    composer dump-autoload
    
  3. Publish vendor files of this package.
    php artisan vendor:publish --provider="CheweiHu\CRUDGeneratorTemplate\CRUDGeneratorTemplateServiceProvider" --force
    
  4. Done.