diff --git a/composer.json b/composer.json index 882d746..40c87b1 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ ], "license": "MIT", "require": { - "php": ">=7.1.0", + "laravel/nova": "^2.0", "spatie/laravel-activitylog": "^3.2" }, "autoload": { diff --git a/config/nova-activitylog.php b/config/nova-activitylog.php index c15c7b5..fcbfc52 100644 --- a/config/nova-activitylog.php +++ b/config/nova-activitylog.php @@ -1,10 +1,17 @@ + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ +return [ /* * Set the resource used for `nova-activitylog` package. Default is `activitylogs`. */ 'resourceName' => 'activitylogs', - ]; diff --git a/src/NovaActivitylog.php b/src/NovaActivitylog.php index ffe8131..2fd1dc1 100644 --- a/src/NovaActivitylog.php +++ b/src/NovaActivitylog.php @@ -20,7 +20,6 @@ class NovaActivitylog extends Tool */ public function boot() { - // } /** diff --git a/src/Resources/Activitylog.php b/src/Resources/Activitylog.php index 2b66e8f..540343b 100644 --- a/src/Resources/Activitylog.php +++ b/src/Resources/Activitylog.php @@ -11,14 +11,14 @@ namespace Bolechen\NovaActivitylog\Resources; -use App\Nova\Resource; use Illuminate\Http\Request; use Laravel\Nova\Fields\Code; use Laravel\Nova\Fields\DateTime; use Laravel\Nova\Fields\ID; use Laravel\Nova\Fields\Text; +use Laravel\Nova\Resource as NovaResource; -class Activitylog extends Resource +class Activitylog extends NovaResource { public static $model;