From c5da2596074b4f239525b6a05f6fe8d14a215eef Mon Sep 17 00:00:00 2001 From: uyab Date: Thu, 5 Nov 2015 07:34:21 +0700 Subject: [PATCH] add spatie/activitylog --- composer.json | 3 ++- src/SupportServiceProvider.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b48f4ed..21a3891 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "require": { "php" : ">=5.5.9", "illuminate/support": "~5.1", - "edvinaskrucas/notification": "5.*" + "edvinaskrucas/notification": "5.*", + "spatie/activitylog": "2.*", }, "require-dev": { "phpunit/phpunit" : "4.*" diff --git a/src/SupportServiceProvider.php b/src/SupportServiceProvider.php index f79d9bc..fa14f49 100644 --- a/src/SupportServiceProvider.php +++ b/src/SupportServiceProvider.php @@ -32,8 +32,13 @@ public function boot() */ public function register() { + // notification $this->app->register('Krucas\Notification\NotificationServiceProvider'); AliasLoader::getInstance()->alias('Notification', 'Krucas\Notification\Facades\Notification'); + + // activity log + $this->app->register('Spatie\Activitylog\ActivitylogServiceProvider'); + AliasLoader::getInstance()->alias('Activity', 'Spatie\Activitylog\ActivitylogFacade'); } /**