@@ -116,7 +116,7 @@ |
||
116 | 116 | /** |
117 | 117 | * @param string $description |
118 | 118 | * |
119 | - * @return null|mixed |
|
119 | + * @return null|Model |
|
120 | 120 | */ |
121 | 121 | public function log(string $description) |
122 | 122 | { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace Spatie\Activitylog; |
4 | 4 | |
5 | 5 | use Illuminate\Auth\AuthManager; |
6 | +use Illuminate\Contracts\Config\Repository; |
|
6 | 7 | use Illuminate\Database\Eloquent\Model; |
7 | -use Spatie\Activitylog\Models\Activity; |
|
8 | 8 | use Illuminate\Support\Traits\Macroable; |
9 | -use Illuminate\Contracts\Config\Repository; |
|
10 | 9 | use Spatie\Activitylog\Exceptions\CouldNotLogActivity; |
10 | +use Spatie\Activitylog\Models\Activity; |
|
11 | 11 | |
12 | 12 | class ActivityLogger |
13 | 13 | { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | 6 | use Illuminate\Support\ServiceProvider; |
7 | -use Spatie\Activitylog\Models\Activity; |
|
8 | 7 | use Spatie\Activitylog\Exceptions\InvalidConfiguration; |
8 | +use Spatie\Activitylog\Models\Activity; |
|
9 | 9 | |
10 | 10 | class ActivitylogServiceProvider extends ServiceProvider |
11 | 11 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Activitylog\Traits; |
4 | 4 | |
5 | -use Spatie\Activitylog\ActivitylogServiceProvider; |
|
6 | 5 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
6 | +use Spatie\Activitylog\ActivitylogServiceProvider; |
|
7 | 7 | |
8 | 8 | trait CausesActivity |
9 | 9 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Activitylog\Traits; |
4 | 4 | |
5 | -use Illuminate\Support\Collection; |
|
6 | -use Spatie\Activitylog\ActivityLogger; |
|
7 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | +use Illuminate\Database\Eloquent\Relations\MorphMany; |
|
8 | 7 | use Illuminate\Database\Eloquent\SoftDeletes; |
8 | +use Illuminate\Support\Collection; |
|
9 | +use Spatie\Activitylog\ActivityLogger; |
|
9 | 10 | use Spatie\Activitylog\ActivitylogServiceProvider; |
10 | -use Illuminate\Database\Eloquent\Relations\MorphMany; |
|
11 | 11 | |
12 | 12 | trait LogsActivity |
13 | 13 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Activitylog\Traits; |
4 | 4 | |
5 | -use Spatie\Activitylog\ActivitylogServiceProvider; |
|
6 | 5 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
6 | +use Spatie\Activitylog\ActivitylogServiceProvider; |
|
7 | 7 | |
8 | 8 | trait HasActivity |
9 | 9 | { |