Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 584 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 584 Bytes

Simple Laravel Action

This is a simple Laravel action service for controllers.

Installation

composer require ronssij/laravel-actions

Usage

php artisan make:action YourActionClass

This command will generate a specific file on the default folder App\Actions

namespace App\Actions;

class YourActionClass
{
    /**
     * Execute the action and return a result.
     *
     * @return mixed
     */
    public function execute () {
        // Execute the action.
    }
}

License

MIT