PHP code example of emplify-software / statamic-google-reviews
1. Go to this page and download the library: Download emplify-software/statamic-google-reviews 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/ */
emplify-software / statamic-google-reviews example snippets
// app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('emplify-software:google-reviews:crawl')->daily();
}
// routes/console.php
use Illuminate\Support\Facades\Schedule;
Schedule::command('emplify-software:google-reviews:crawl')->daily();
$schedule
->command('emplify-software:google-reviews:crawl')->daily()
->onFailure(function () {
// Handle the failure, e.g. send a notification
});
bash
php artisan vendor:publish --tag=statamic-google-reviews
bash
php artisan emplify-software:google-reviews:crawl