After working on so many Laravel projects that required creating APIs and scaffold CRUD, the problem that we faced was, every time we were creating bunch of repeated files like Migration, Model, Controller, Repository and even test cases.

So we started searching a way to streamline this process, and that's how my very first laravel package laravel-api-generator package was born. In just few days it got a huge attraction and laravel community started using it and came back with various feature requests, pull requests and issues.

Everything was running fine, but still, we were not fully satisfied with features where we can have the option to generate test cases, swagger annotations, auth scaffold, layouts and scaffold templates of your choice of CSS framework like bootstrap, materializecss, semantic-ui etc.

We decided to rewrite the package from scratch with a new name in a fully modular way with a bunch of new features. By the time we created this new package InfyOm Laravel Generator.

Here is the full feature list of the package:

  1. Core Features
    • Migration
    • Model
    • Repository
    • Controllers
    • Requests
    • Views
    • Factory
    • Seeder
    • Test Cases
    • Routes
  2. API Generator
  3. Scaffold Generator
  4. AdminLTE Templates support
  5. CoreUI Templates support
  6. Relationships support (Beta)
  7. Swagger Generation
  8. Support for all Laravel versions 6.0, 7.0 & 8.0
  9. Generate CRUD from existing Table
  10. Advance Prefix/Sub folder Options
  11. Save schema & Generate CRUD from schema file
  12. Support to Publish and Customize templates
  13. One click clone Boilerplates
  14. Publish Layout for admin panel & Auth files
  15. Individual commands for file generation
  16. Rollback command to delete generated files
  17. Localization
  18. Options

Let's get started with installation.