PHP code example of henrywhitaker3 / laravel-actions
1. Go to this page and download the library: Download henrywhitaker3/laravel-actions 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/ */
henrywhitaker3 / laravel-actions example snippets
$action = new SomeAction();
$action->run();
run(SomeAction::class);
run(SomeAction::class, $arg);
run(SomeAction::class, $arg1, $arg2);
bash
php artisan make:action <name>