Skip to content

Laravel 5 Auto discover #69

@messi89

Description

@messi89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions