PHP code example of pinetco-dev / laravel-power-actions
1. Go to this page and download the library: Download pinetco-dev/laravel-power-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/ */
pinetco-dev / laravel-power-actions example snippets
$action = \App\Actions\UserAction::make($user)->execute();
if($action->performed()){
// something
}
bash
php artisan vendor:publish --tag="laravel-power-actions-views"