Dev0ps
211
5
Laravel

Non-static method Chencha\Share\Share::load() should not be called statically

Posted 5 months ago by Dev0ps
use Chencha\Share\Share;
 return Share::load('http://www.example.com', 'Link description')->services('facebook', 'gplus', 'twitter');

If I call it within a class, even when I declare with app('share') I get the error.

Non-static method Chencha\Share\Share::load() should not be called statically

i added

Chencha\Share\ShareServiceProvider::class,
'Share' => Chencha\Share\ShareFacade::class,

Please sign in or create an account to participate in this conversation.