This is a simple Laravel action service for controllers.
composer require ronssij/laravel-actions
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.
}
}