@@ -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,10 +3,10 @@ |
||
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 | 8 | use Illuminate\Support\Traits\Macroable; |
8 | 9 | use Spatie\Activitylog\Contracts\Activity; |
9 | -use Illuminate\Contracts\Config\Repository; |
|
10 | 10 | use Spatie\Activitylog\Exceptions\CouldNotLogActivity; |
11 | 11 | |
12 | 12 | class ActivityLogger |
@@ -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 | { |