Laravel 6.0
This commit is contained in:
@ -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(),
|
||||
|
Reference in New Issue
Block a user