I'm new to Laravel and am trying to this extension: https://github.com/kawax/laravel-google-sheet to read data from a Google Spreadsheet.
However, the documentation doesn't spell out each step.
I realised I had to put the provider in app.php like this:
'Sheets' => Revolution\Google\Sheets\Sheets::class,
, and an alias in my app.php like this Sheets' => Revolution\Google\Sheets\Sheets::class,
which isn't in the documentation. Hopefully that's right...?
I then tried the first Laravel example from README.md
use Sheets; // I had to precede with "\"
use Google; // I had to precede with "\"
Sheets::setService(Google::make('sheets'));
Sheets::spreadsheet('myspreadsheetid');
However I get this error:
Non-static method Revolution\Google\Sheets\Sheets::setService() should not be called statically