ronssij/laravel-actions

A simple action service for controllers.

dev-master 2019-08-08 03:11 UTC

This package is auto-updated.

Last update: 2025-07-08 18:04:40 UTC


README

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