Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 5 Auto discover #69

Open
messi89 opened this issue Apr 28, 2019 · 0 comments
Open

Laravel 5 Auto discover #69

messi89 opened this issue Apr 28, 2019 · 0 comments

Comments

@messi89
Copy link

messi89 commented Apr 28, 2019

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');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant