@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * Perform an audit. |
| 16 | 16 | * |
| 17 | - * @param \OwenIt\Auditing\Contracts\Auditable|\Illuminate\Notifications\Notifiable $model |
|
| 17 | + * @param Auditable $model |
|
| 18 | 18 | * @return \OwenIt\Auditing\Contracts\Audit |
| 19 | 19 | */ |
| 20 | 20 | public function audit(Auditable $model): Audit |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Andreshg112\LaravelAuditingNotifications; |
| 4 | 4 | |
| 5 | +use Illuminate\Notifications\Notifiable; |
|
| 5 | 6 | use Illuminate\Support\Arr; |
| 6 | 7 | use OwenIt\Auditing\Contracts\Audit; |
| 7 | -use Illuminate\Notifications\Notifiable; |
|
| 8 | -use OwenIt\Auditing\Contracts\Auditable; |
|
| 9 | 8 | use OwenIt\Auditing\Contracts\AuditDriver; |
| 9 | +use OwenIt\Auditing\Contracts\Auditable; |
|
| 10 | 10 | use OwenIt\Auditing\Exceptions\AuditingException; |
| 11 | 11 | |
| 12 | 12 | class NotificationDriver implements AuditDriver |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Andreshg112\LaravelAuditingNotifications; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Facades\Config; |
|
| 6 | -use Lab123\AwsSns\Messages\AwsSnsMessage; |
|
| 7 | 5 | use Illuminate\Notifications\Notification; |
| 6 | +use Illuminate\Support\Facades\Config; |
|
| 8 | 7 | use Lab123\AwsSns\Channels\AwsSnsTopicChannel; |
| 8 | +use Lab123\AwsSns\Messages\AwsSnsMessage; |
|
| 9 | 9 | use OwenIt\Auditing\Exceptions\AuditingException; |
| 10 | 10 | |
| 11 | 11 | class AuditSns extends Notification |