PHP code example of webteractive / make-action

1. Go to this page and download the library: Download webteractive/make-action library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

webteractive / make-action example snippets


// config for Webteractive/MakeAction
return [
    'method_name' => 'handle',
];



namespace App\Actions;

class CreateNewUser
{
    public function handle()
    {
        // TODO: Implement the action logic.
    }
}

// config for Webteractive/MakeAction
return [
    'method_name' => 'execute',
];
bash
php artisan make:action CreateNewUser