atlaschiew / laravel-study

happy laraveling
0 stars 0 forks source link

How facade works in laravel-admin? #7

Open atlaschiew opened 1 year ago

atlaschiew commented 1 year ago

in this post, i will take Admin facade as example.

# vendor/encore/laravel-admin/composer.json
    "extra": {
        "laravel": {
            "providers": [
                ...
            ],
            "aliases": {
                "Admin": "Encore\\Admin\\Facades\\Admin"
            }
        }
    }

shortly, app implement ArrayAccess, thus trigger app->make to produce a new Admin instance

i will explain in future. https://learnku.com/articles/37493.