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.