Skip to content

Auto package discovery. No need to add service provider and aliases i… #48

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

Merged
merged 2 commits into from
Jul 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@
"Flynsarmy\\DbBladeCompiler\\": "src/"
}
},
"minimum-stability": "stable"
}
"minimum-stability": "stable",
"extra": {
"laravel": {
"providers": [
"Flynsarmy\\DbBladeCompiler\\DbBladeCompilerServiceProvider"
],
"aliases": {
"DbView": "Flynsarmy\\DbBladeCompiler\\Facades\\DbView"
}
}
}
}
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ Require this package in your composer.json and run composer update (or run `comp

"flynsarmy/db-blade-compiler": "*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php
The DbBladeCompilerServiceProvider is auto-discovered and registered by default, but if you want to register it yourself:
add the ServiceProvider to the providers array in app/config/app.php

'Flynsarmy\DbBladeCompiler\DbBladeCompilerServiceProvider',

and the Facade to the aliases array in the same file
and the DbView facade is also auto-discovered, but if you want to add it manually:
add the Facade to the aliases array in config/app.php

'DbView' => 'Flynsarmy\DbBladeCompiler\Facades\DbView',

Expand Down