File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ Add your configuration files:
38
38
```
39
39
40
40
41
-
42
41
### Package providing database migrations
43
42
44
43
Simply implement our ` DefinesMigrations ` interface.
@@ -66,6 +65,33 @@ Optional you can define the publishing of your database migrations by setting pr
66
65
67
66
When publishing, the tag will be ` migrations ` .
68
67
68
+
69
+ ### Package providing views
70
+
71
+ Simply implement our ` DefinesViews ` interface.
72
+
73
+ ``` php
74
+ class YOURPACKAGEServiceProvider extends PackageServiceProvider implements DefinesViews
75
+ ```
76
+
77
+ Add your view source paths:
78
+ ``` php
79
+ /**
80
+ * returns view file paths
81
+ *
82
+ * @return array|string[]
83
+ */
84
+ public function views()
85
+ {
86
+ return [
87
+ $this->packagePath . 'resources' . DIRECTORY_SEPARATOR . 'views',
88
+ ];
89
+ }
90
+ ```
91
+
92
+ When publishing, the view tag will be ` view ` .
93
+
94
+
69
95
## License
70
96
71
97
Package Manager is open-sourced software licensed under the [ MIT license] ( http://opensource.org/licenses/MIT )
You can’t perform that action at this time.
0 commit comments