Comments (3)
Work Around:
App\Providers\AppServiceProvider.php:
public function register()
{
$this->app->when(Youtube::class)
->needs('$key')
->give(config('youtube.key'));
}
from youtube.
@poppabear8883 Thanks for this issue, I've been away from the Laravel scene for a while now, if you can provide the solution you proposed in a PR without breaking the existing implementation of the Facades approach and adding support for the container dependency approach that would be great.
from youtube.
@alaouy An easy solution is to apply the work around to your YoutubeServiceProvider.php
class in the register()
method. Untested (should work in theory)
public function register()
{
$this->app->bind('youtube', function () {
return new Youtube(config('youtube.key'));
});
$this->app->when(Youtube::class)
->needs('$key')
->give(config('youtube.key'));
}
from youtube.
Related Issues (20)
- Facade autocomplete is not working in phpstorm HOT 1
- searchChannelVideos & getVideoInfo HOT 2
- Add __('string') to enable other languages. HOT 1
- how can show commet of youtube video in my dashboard please send me step by step. HOT 1
- call_user_func_array() expects parameter 1 to be a valid callback, class 'Google\Client' does not have a method 'getVideoInfo' HOT 3
- getVideoInfo with single string returns 'Object of class stdClass could not be converted to string' HOT 2
- ANY way we can upload video on YOUTUBE ? HOT 1
- "getPlaylistItemsByPlaylistId" by date order HOT 3
- Checking if adding comments is allowed HOT 1
- getChannelFromURL doesn't work with custom channel URLS HOT 2
- function `decodeList` pretends to return array but can also return `false` HOT 1
- How can I paginate comments? HOT 1
- Exception Curl Error : getaddrinfo() thread failed to start HOT 2
- Can't validate and get data from Clip and Playlist HOT 3
- add support for members.list method HOT 1
- Improvements: Shorts video ID parsing support HOT 1
- Get channel ID from vanity URL HOT 3
- Warning: Undefined property: stdClass::$items HOT 2
- Add Get Channel By Handle HOT 2
- How to get the list of channel videos without youtube shorts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube.