Commit 39c2e3bd6d53a7eedae40721e2ae43b1b5f41571
1 parent
3d1540d58f
Exists in
master
and in
2 other branches
Log IP for VDM reports
Showing 1 changed file with 3 additions and 0 deletions
api/app/Http/Controllers/V1/Partners/VdmController.php
View file @
39c2e3b
... | ... | @@ -7,6 +7,8 @@ |
7 | 7 | //use App\Http\Requests\VdmRequest; |
8 | 8 | use Carbon\Carbon; |
9 | 9 | use Illuminate\Support\Facades\DB; |
10 | +use Illuminate\Http\Request; | |
11 | +use Illuminate\Support\Facades\Log; | |
10 | 12 | |
11 | 13 | class VdmController extends Controller |
12 | 14 | { |
... | ... | @@ -29,6 +31,7 @@ |
29 | 31 | // ]; |
30 | 32 | // } |
31 | 33 | // DB::table('vdm')->insert($records); |
34 | + Log::info('Received VDM report from IP '.\Request::ip().'. Storing into database'); | |
32 | 35 | return response()->json(['success' => 'success'], 200); |
33 | 36 | } |
34 | 37 |