Use LaravelGenerator to quickly generate CRUD, API, and test case code for Laravel applications-Introduction

Source: Internet
Author: User
Use LaravelGenerator to quickly generate CRUD, API, and test case code for Laravel applications. This article describes how to create APIs and CRUD in many projects, the problem we are facing is that we need to create a bunch of migration files, model classes, controllers, Repository and even test cases each time. these files have the same structure, but the class names are different, we need to simplify this process and use a unified template to quickly generate these class files. Therefore, laravel-api-generator, the first extension package, has received a lot of attention in a short time, it attracted many people in the Laravel community to use it and raised many questions and new features.

Everything works, but even so, generate test cases, swagger comments, authenticate scaffolding, layout, and the CSS framework you choose (such as Bootstrap) we are not satisfied with the support of View templates, materializecss, and semantic UI. So we decided to rewrite this extension package in a fully modular way, and added many new features, the new Github address for the project is: https://github.com/infyomlabs, including the following new features:

  • Core features
    • Migration (Migration)
    • Model)
    • Repository)
    • Request)
    • Routes. php adjustment
  • API builder
    • API controller
    • Limit, search, Offset & sort options
  • Scaffolding generator
    • Controller
    • View (list, create, update, delete)
    • Paging records
  • Test cases of API and Repository
  • Swagger Generation (using jlapp/swaggervel)
  • Generate the corresponding CRUD through an existing table
  • Prefix generation
  • Generate the corresponding CRUD through the schema file
  • Supports publishing and custom View templates
  • Publish the Auth file
  • Independent file generation commands
  • Optional
    • Soft delete
    • Custom table name
    • Save schema to a file

Next we will discuss how to install and configure the extension package.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.