WARNING
You're browsing the documentation for an old version of Generator. Consider upgrading your project to Generator 0.4.
How to Contribute
You can contribute to this project by following these steps:
Create a new Laravel project:
shcomposer create-project laravel/laravel generator-devor
shlaravel new generator-devInstall the required libraries:
shcomposer require laravel/fortify spatie/laravel-permission intervention/image-laravel yajra/laravel-datatables-oracleCreate the
packages/evdigi-inafolder in the main project directoryshmkdir packages/evdigi-inaCD into
packages/evdigi-inafolder and clone the repositoryshcd packages/evdigi-inabashgit clone https://github.com/Evdigi-INA/generator.gitCD into
/generatorand install the dependenciesshcd generatorCheckout to
devbranch for newest changesbashgit checkout -b devbashgit pull origin devshcomposer ithen return to the main project directory
shcd ../../../Add the following code to
composer.jsonjson"autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "EvdigiIna\\Generator\\": "packages/evdigi-ina/generator/src/" } },Run the following command
shcomposer dump-autoloadAdd the following code to
bootstrap/app.phpphp->withProviders([ \EvdigiIna\Generator\Providers\GeneratorServiceProvider::class, //... ])Publish the necessary files for Generator
shphp artisan generator:install fullAdd the following code to
composer.jsonjson"autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "EvdigiIna\\Generator\\": "packages/evdigi-ina/generator/src/" }, "files": [ "App/Generators/helper.php" ] },Add the following code to
bootstrap/app.phpphp->withProviders([ \EvdigiIna\Generator\Providers\GeneratorServiceProvider::class, //.. ])Then execute the following command again
shcomposer dump-autoloadMigrate the database
shphp artisan migrate --seedRun the local development server
shphp artisan serveMake the desired code changes in
packages/evdigi-ina/generatorEnsure the code works well
It would be better if you create unit tests as well
Switch to a new branch
bashgit checkout -b update-generatorbashgit add .bashgit pull origin devbashgit commit -m "describe your changes"Push the code to the repository
bashgit push origin update-generatorCreate a Pull Request to the repository
