PHP code example of cammac / nova-workflow
1. Go to this page and download the library: Download cammac/nova-workflow 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/ */
cammac / nova-workflow example snippets
use Cammac\Workflow\Workflow;
...
public function fields(Request $request)
{
return [
ID::make()->sortable(),
// Your other fields
Workflow::make('request')->onlyOnDetail() // request is the workflow name defined in workflow configuration file
];
}
bash
php artisan vendor:publish --tag workflow