jagehring / laravel-rcon

MIT License
0 stars 0 forks source link

Error Using $this when not in object context #1

Open DrZiLLo opened 2 years ago

DrZiLLo commented 2 years ago

image

jagehring commented 2 years ago

Can you provide more info? What where you doing to cause this?

DrZiLLo commented 2 years ago

@jagehring the problem was solved by correcting a piece of code It was $response = Rcon::command('status'); became $response = (new \Adams\Rcon\Rcon)->command('status');

jagehring commented 2 years ago

Glad you figured it out for your usage. I am using $response = Rcon::command('status'); with no issues. Did you make sure to add the service provider and facade?