PHP code example of alanalbert / laravel_mutex
1. Go to this page and download the library: Download alanalbert/laravel_mutex 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/ */
alanalbert / laravel_mutex example snippets
$path = get_command_mutex(function (\Illuminate\Console\Scheduling\Schedule $schedule) {
// schedule command
return $schedule->command('test')->withoutOverlapping()->runInBackground();
});