Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chicongst/porto-generator
A package that helps you create Tasks and Actions in Porto architecture quickly.
https://github.com/chicongst/porto-generator
Last synced: 5 days ago
JSON representation
A package that helps you create Tasks and Actions in Porto architecture quickly.
- Host: GitHub
- URL: https://github.com/chicongst/porto-generator
- Owner: chicongst
- Created: 2020-11-29T03:41:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-03T13:32:00.000Z (about 4 years ago)
- Last Synced: 2024-11-15T06:42:35.705Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Porto Generator
Easy to make Action and Taks with Porto structure.
## Install
```shell
composer require chicongst/porto
```### Config
You may want to save the root of your project folder out of the app and add another namespace, for example
```php
'namespace'=> 'App\\Containers\\',
'generator'=>[
'action-stub' => app_path('stubs/action.stub'),
'task-stub' => app_path('stubs/task.stub')
]
```#### Commands
To generate everything you need, run this command:
```terminal
php artisan porto:action Service/ActionName
php artisan porto:task Service/TaskName
```
#### Publish Configuration```shell
php artisan vendor:publish --provider="Chicongst\Porto\ServiceProvider"
```