php-youtube-api
php-youtube-api copied to clipboard
Laravel 5 Auto discover
trafficstars
Hi
since laravel 5 support auto discover package we don't need to add the service provider and the facade manually (https://laravel.com/docs/5.8/packages#package-discovery)
juste add to the composer.json :
"extra": { "laravel": { "providers": [ "Madcoda\\Youtube\\YoutubeServiceProviderLaravel5" ], "aliases": { "Youtube": "Madcoda\\Youtube\\Facades\\Youtube" } } }
another suggestion is to add the group for publish (to use it with php artisan vendor:publish tag=)
$this->publishes([ __DIR__.'/config/youtube.php' => config_path('youtube.php'), ], 'youtube-api');