Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"
```