1. Go to this page and download the library: Download artisanpack-ui/google 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/ */
use ArtisanPackUI\Hooks\Facades\Filter;
// In your service provider's boot() method:
Filter::add( 'ap.google.scopes', function ( array $scopes ): array {
$scopes[] = 'https://www.googleapis.com/auth/analytics.readonly';
return $scopes;
} );