File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed
Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change 1717 ],
1818 "require" : {
1919 "php" : " ^8.1" ,
20- "illuminate/contracts" : " ^10.0|^11.0" ,
21- "wikimedia/composer-merge-plugin" : " ^2.1"
20+ "illuminate/contracts" : " ^10.0|^11.0"
2221 },
2322 "require-dev" : {
2423 "laravel/pint" : " ^1.0" ,
5352 "sort-packages" : true ,
5453 "allow-plugins" : {
5554 "pestphp/pest-plugin" : true ,
56- "phpstan/extension-installer" : true ,
57- "wikimedia/composer-merge-plugin" : true
55+ "phpstan/extension-installer" : true
5856 }
5957 },
6058 "extra" : {
6159 "laravel" : {
6260 "providers" : [
63- " Laraflow\\ Plugin\\ PluginServiceProvider" ,
64- " Laraflow\\ Plugin\\ Providers\\ PluginAutoloader"
65- ]
66- },
67- "merge-plugin" : {
68- "include" : [
69- " plugins/*/*/composer.json"
61+ " Laraflow\\ Plugin\\ PluginServiceProvider"
7062 ],
71- "recurse" : true ,
72- "replace" : false ,
73- "merge-replace" : false ,
74- "merge-dev" : true
63+ "aliases" : {
64+ "Plugin" : " Laraflow\\ Plugin\\ Plugin"
65+ }
7566 }
7667 },
7768 "minimum-stability" : " dev" ,
Original file line number Diff line number Diff line change 22
33namespace Laraflow \Plugin ;
44
5+ use Illuminate \Support \Facades \Blade ;
56use Illuminate \Support \ServiceProvider ;
67
78abstract class LaraflowPlugin extends ServiceProvider
@@ -14,7 +15,18 @@ abstract public function views(): array;
1415
1516 abstract public function navigations (): array ;
1617
17- public function register () {}
18+ public function components (): array
19+ {
20+ return [];
21+ }
1822
19- public function boot () {}
23+ public function register ()
24+ {
25+
26+ }
27+
28+ public function boot ()
29+ {
30+ Blade::components ($ this ->components ());
31+ }
2032}
Original file line number Diff line number Diff line change 55use Illuminate \Support \ServiceProvider ;
66use Laraflow \Plugin \Plugin ;
77
8- class PluginAutoloader extends ServiceProvider
8+ class PluginLoader extends ServiceProvider
99{
1010 /**
1111 * Register services.
You can’t perform that action at this time.
0 commit comments