Laravel 6.0

This commit is contained in:
Tyler
2020-12-21 02:33:51 -05:00
parent 3449022d54
commit 12545e29e7
16 changed files with 1362 additions and 665 deletions

View File

@ -4,6 +4,7 @@ namespace App\Services\BookInformation;
use Google_Client;
use Google_Service_Books;
use Illuminate\Support\Arr;
class GoogleBooks implements BookLookupService {
@ -19,7 +20,7 @@ class GoogleBooks implements BookLookupService {
/**
* @var \Google_Service_Books_Volume
*/
$volume = array_first($results->getItems())->getVolumeInfo();
$volume = Arr::first($results->getItems())->getVolumeInfo();
return [
'title' => $volume->getTitle(),