Looking to hire Laravel developers? Try LaraJobs

laravel-actions maintained by ronssij

Description
A simple action service for controllers.
Author
Last update
2019/08/08 05:11 (dev-master)
License
Links
Downloads
181

Comments
comments powered by Disqus

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