WARNING
You're browsing the documentation for an old version of Generator. Consider upgrading your project to Generator 0.3.x.
How to Contribute ​
To contribute to this project, please follow the following steps: ​
Create a new laravel project using the following command:
shcomposer create-project laravel/laravel generator-dev
or
shlaravel new generator-dev
Install the dependencies using the following command:
shcomposer require laravel/fortify spatie/laravel-permission intervention/image "^2.0" yajra/laravel-datatables-oracle
Publish
fortify
resourcesshphp artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
Create folder
packages/evdigi-ina
in the root of the projectCD into
packages/evdigi-ina
, clone the repositorybashgit clone https://github.com/Evdigi-INA/generator.git
and install the dependency
shcomposer i
then back again into root project
Add the following code to the
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 the
config/app.php
php/* * Package Service Providers... */ EvdigiIna\Generator\Providers\GeneratorServiceProvider::class, Yajra\DataTables\DataTablesServiceProvider::class, Spatie\Permission\PermissionServiceProvider::class, Intervention\Image\ImageServiceProvider::class, App\Providers\FortifyServiceProvider::class, // App\Providers\ViewComposerServiceProvider::class,
Publish required file for the generator
shphp artisan generator:install full
Add the following code to the
composer.json
(autoload files)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" ] },
Uncomment
App\Providers\ViewComposerServiceProvider::class
inconfig/app.php
Then run for a second time
shcomposer dump-autoload
Migrate the database
shphp artisan migrate --seed
Start local development server and go to
/generators/create
shphp artisan serve
Make changes code as you wish in
packages/evdigi-ina/generator
Make sure the code is working properly
Checkout to a new branch
bashgit branch your_name
bashgit checkout your_name
bashgit add .
bashgit commit -m "describe your changes"
Push the code to the repository
bashgit push origin your_name
Create a pull request.