From c9291abc480ae6855b66f38a01319d0b4f42dc85 Mon Sep 17 00:00:00 2001 From: freek Date: Thu, 5 Feb 2015 13:17:16 +0100 Subject: [PATCH] remove legacy method --- .../ActivitylogServiceProvider.php | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/Spatie/Activitylog/ActivitylogServiceProvider.php b/src/Spatie/Activitylog/ActivitylogServiceProvider.php index 54474d3..10ccc9e 100644 --- a/src/Spatie/Activitylog/ActivitylogServiceProvider.php +++ b/src/Spatie/Activitylog/ActivitylogServiceProvider.php @@ -20,23 +20,16 @@ class ActivitylogServiceProvider extends ServiceProvider { */ public function boot() { - - if ($this->isLegacyLaravel()) - { - $this->package('spatie/activitylog'); - } - else - { - // Publish a config file - $this->publishes([ - __DIR__.'/../../config/activitylog.php' => config_path('activitylog.php') - ], 'config'); + // Publish a config file + $this->publishes([ + __DIR__.'/../../config/activitylog.php' => config_path('activitylog.php') + ], 'config'); // Publish your migrations - $this->publishes([ - __DIR__.'/../../migrations/' => base_path('/database/migrations') - ], 'migrations'); - } + $this->publishes([ + __DIR__.'/../../migrations/' => base_path('/database/migrations') + ], 'migrations'); + } /**