PHP code example of the-3labs-team / nova-busy-resource-field
1. Go to this page and download the library: Download the-3labs-team/nova-busy-resource-field 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/ */
the-3labs-team / nova-busy-resource-field example snippets
use The3labsTeam\NovaBusyResourceField\App\Traits\Busiable;
class Article extends Model{
use Busiable;
}
use The3labsTeam\NovaBusyResourceField\NovaBusyResourceField;
public function fields(NovaRequest $request)
{
return [
// ...
NovaBusyResourceField::make('')->withMeta([
'saveEvery' => 30000 // In milliseconds
]),
// ...
];
}
$schedule->command('nova-busy-resource-field:run')->everyMinute()->withoutOverlapping();
bash
php artisan vendor:publish --tag=nova-busy-resource-field-migrations
bash
php artisan migrate
bash
php artisan vendor:publish --tag=nova-busy-resource-field-config