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-dev
or
shlaravel new generator-dev
Install the required libraries:
shcomposer require laravel/fortify spatie/laravel-permission intervention/image-laravel yajra/laravel-datatables-oracle
Create the
packages/evdigi-ina
folder in the main project directoryshmkdir packages/evdigi-ina
CD into
packages/evdigi-ina
folder and clone the repositoryshcd packages/evdigi-ina
bashgit clone https://github.com/Evdigi-INA/generator.git
CD into
/generator
and install the dependenciesshcd generator
Checkout to
dev
branch for newest changesbashgit checkout -b dev
bashgit pull origin dev
shcomposer i
then return to the main project directory
shcd ../../../
Add the following code to
composer.json
json"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-autoload
Add the following code to
bootstrap/app.php
php->withProviders([ \EvdigiIna\Generator\Providers\GeneratorServiceProvider::class, //... ])
Publish the necessary files for Generator
shphp artisan generator:install full
Add the following code to
composer.json
json"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.php
php->withProviders([ \EvdigiIna\Generator\Providers\GeneratorServiceProvider::class, //.. ])
Then execute the following command again
shcomposer dump-autoload
Migrate the database
shphp artisan migrate --seed
Run the local development server
shphp artisan serve
Make the desired code changes in
packages/evdigi-ina/generator
Ensure the code works well
It would be better if you create unit tests as well
Switch to a new branch
bashgit checkout -b update-generator
bashgit add .
bashgit pull origin dev
bashgit commit -m "describe your changes"
Push the code to the repository
bashgit push origin update-generator
Create a Pull Request to the repository