File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed
src/GetStream/StreamLaravel Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 11##Stream Laravel
2- [ ![ Build Status] ( https://travis-ci.org/peachepe /stream-laravel.svg?branch=master )] ( https://travis-ci.org/peachepe /stream-laravel )
2+ [ ![ Build Status] ( https://travis-ci.org/GetStream /stream-laravel.svg?branch=master )] ( https://travis-ci.org/GetStream /stream-laravel )
33
44This package helps you create activity streams & newsfeeds with Laravel and [ GetStream.io] ( https://getstream.io ) .
55
Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ class StreamLaravelServiceProvider extends ServiceProvider {
1818 */
1919 public function boot ()
2020 {
21- // $this->registerResources();
22-
23- $ this ->loadViewsFrom (__DIR__ .'/../../views ' , 'stream-laravel ' );
24-
25- $ this ->publishes ([
26- __DIR__ .'/../../config/config.php ' => config_path ('stream-laravel.php ' ),
27- __DIR__ .'/../../views ' => base_path ('resources/views/vendor/stream-laravel ' ),
28- ]);
21+ if (method_exists ($ this , 'publishes ' )) {
22+ $ this ->loadViewsFrom (__DIR__ .'/../../views ' , 'stream-laravel ' );
23+
24+ $ this ->publishes ([
25+ __DIR__ .'/../../config/config.php ' => config_path ('stream-laravel.php ' ),
26+ __DIR__ .'/../../views ' => base_path ('resources/views/vendor/stream-laravel ' ),
27+ ]);
28+ } else {
29+ $ this ->package ('get-stream/stream-laravel ' );
30+ }
2931 }
3032
3133 /**
@@ -36,7 +38,9 @@ public function boot()
3638 public function register ()
3739 {
3840
39- $ this ->registerResources ();
41+ if (method_exists ($ this , 'publishes ' )) {
42+ $ this ->registerResources ();
43+ }
4044
4145 $ this ->app ['feed_manager ' ] = $ this ->app ->share (function ($ app )
4246 {
You can’t perform that action at this time.
0 commit comments