nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 328 forks source link

Facade not working #6

Closed fishisawesome closed 8 years ago

fishisawesome commented 8 years ago

i followed the instructions in the Readme and got Call to undefined method Nahid\Talk\Facades\Talk::setAuthUserId()

nahid commented 8 years ago

Sorry, its a minor bug. Thanks @fishisawesome for reporting it. Its already fixed. You may try version :1.1.2 or reinstall it.

fishisawesome commented 8 years ago

awesome, thanks

hennessy7 commented 8 years ago

The problem still persists. Version 1.1.3

nahid commented 8 years ago

Try version 1.1.4

hennessy7 commented 8 years ago

Same... :( FatalErrorException in Facade.php line 217: Call to undefined method Nahid\Talk\Facades\Talk::setAuthUserId()

hennessy7 commented 8 years ago

How can I trick the facade?

nahid commented 8 years ago

in TalkServiceProvider.php change

public function provides()
 {
        return ['Talk'];
 }

to

public function provides()
 {
        return [Talk::class];
 }
hennessy7 commented 8 years ago

Nothing changes. The function provides() is not being used.

ghost commented 5 years ago

Call to undefined method Nahid\EnvatoPHP\Facades\Envato::getAuthUrl()

ghost commented 5 years ago

Its my code in my controller

public function EnvatoData() {
$config = [ "client_id" => '',

        'client_secret' => '',

        "redirect_uri"  =>  '',

        'use_personal_token' => FALSE,

        'personal_token' => '',

        'app_name'      => '',
    ];        

    $envato = new Envato($config);
    $envato->getAuthUrl();

    $user = Envato::me()->accounts();
    dd($user->data);  

    return view('envato_signin');
}
ghost commented 5 years ago

Note: - app credential i will not include in issue but set in my local file