php-youtube-api icon indicating copy to clipboard operation
php-youtube-api copied to clipboard

Laravel 5 Auto discover

Open messi89 opened this issue 6 years ago • 0 comments
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');

messi89 avatar Apr 28 '19 15:04 messi89