hacen-miske/code-generator

This package is for generating a project model , Auth , ....

dev-main 2022-05-16 09:11 UTC

This package is auto-updated.

Last update: 2023-04-25 17:01:03 UTC


README

Laravel Code Generator A simple Laravel library that allows you to create crud operations with a single command

Installation composer require hacen-miske/code-generator Features Controller (with all the code already written) Model Migration Requests Routes Enable the package (Optional) This package implements Laravel auto-discovery feature. After you install it the package provider and facade are added automatically for laravel >= 5.5.

Configuration Publish the configuration file

This step is required

php artisan vendor:publish --provider="HacenMiske\CodeGenerator\CodeGeneratorServiceProvider" Usage After publishing the configuration file just run the below command

php artisan crud:generate Just it, Now all of your Model Controller, Migration, routes and Request will be created automatically with all the code required for basic crud operations

Features to Develop : 1/ Create script to sort the objects in the json => to create the right order of migrations ;