PHP code example of laravelha / generator
1. Go to this page and download the library: Download laravelha/generator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laravelha / generator example snippets
shell script
php artisan preset ha-web --option=auth
app/
├── <SINGULAR_CLASS_NAME>.php
│
└── Http
├── Controllers
| ├── Auth
| ├── IndexController.php
| └── <SINGULAR_CLASS_NAME>Controller.php
|
└── Requests
└── Requests
├── <SINGULAR_CLASS_NAME>StoreRequest.php
└── <SINGULAR_CLASS_NAME>UpdateRequest.php
config/
└── ha-generator.php
database
├── factories
| └── <SINGULAR_CLASS_NAME>Factory.php
|
└── migrations
└── YYYY_MM_DD_HHmmSS_create_<PLURAL_CLASS_NAME>_table.php
resources
├── lang/pt-br
| └── <PLURAL_CLASS_NAME>.php
|
└── views
└── <PLURAL_CLASS_NAME>
├── create.blade
├── delete.blade
├── edit.blade
├── index.blade
└── show.blade
routes
├── api.php
├── breadcrumbs.php
└── web.php