Closed ghost closed 8 years ago
im new in laravel and i dont want to include $trakt = new Trakt($clientId, $clientSecret, $redirectUrl); in every controller
do you know how i should implement this in my code ?
@DeeJaVu You can register it in a service provider. http://laravel.com/docs/5.1/providers this way, you'll only have to create the instance once.
im new in laravel and i dont want to include $trakt = new Trakt($clientId, $clientSecret, $redirectUrl); in every controller
do you know how i should implement this in my code ?