google spreadsheet - Can't get Laravel Sheets extension to work -


i'm new laravel , trying extension: https://github.com/kawax/laravel-google-sheet read data google spreadsheet.

however, documentation doesn't spell out each step.

i realised had put provider in app.php this: 'sheets' => revolution\google\sheets\sheets::class,, , alias in app.php sheets' => revolution\google\sheets\sheets::class, isn't in documentation. that's right...?

i tried first laravel example readme.md

use sheets; // had precede "\" use google; // had precede "\"  sheets::setservice(google::make('sheets')); sheets::spreadsheet('myspreadsheetid'); 

however error:

non-static method revolution\google\sheets\sheets::setservice() should not called statically 

i'm not familiar library.

however, looks sheets class call static setservice() method on not facade actual sheets instance.

try

use revolution\google\sheets\facades\sheets; 

instead of

use \sheets; 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -