@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tracking\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Tracking\Services\AnalyticsService; |
|
| 6 | 5 | use Illuminate\Support\Facades\Schema; |
| 7 | 6 | use Spatie\Analytics\Analytics; |
| 8 | 7 | use Spatie\Analytics\Period; |
| 8 | +use Tracking\Services\AnalyticsService; |
|
| 9 | 9 | |
| 10 | 10 | class AnalyticsController extends Controller |
| 11 | 11 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tracking\Http\Controllers\Metrics; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Tracking\Http\Controllers\Controller as Controller; |
| 7 | 6 | use Tracking\Models\Metrics\LarametricsLog; |
| 8 | 7 | use Tracking\Models\Metrics\LarametricsModel; |
@@ -2,12 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tracking\Http\Controllers\Metrics; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 5 | +use Carbon\Carbon; |
|
| 6 | +use DB; |
|
| 6 | 7 | use Illuminate\Routing\Controller; |
| 7 | -use Tracking\Providers\Metrics\LogParser; |
|
| 8 | 8 | use Tracking\Models\Metrics\LarametricsModel; |
| 9 | -use DB; |
|
| 10 | -use Carbon\Carbon; |
|
| 11 | 9 | |
| 12 | 10 | class ModelController extends Controller |
| 13 | 11 | { |
@@ -5,15 +5,15 @@ |
||
| 5 | 5 | namespace Tracking\Jobs; |
| 6 | 6 | |
| 7 | 7 | use Exception; |
| 8 | -use UAParser\Parser; |
|
| 9 | -use Jenssegers\Agent\Agent; |
|
| 10 | 8 | use Illuminate\Bus\Queueable; |
| 11 | -use Illuminate\Queue\SerializesModels; |
|
| 12 | -use Illuminate\Queue\InteractsWithQueue; |
|
| 13 | 9 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 14 | 10 | use Illuminate\Foundation\Bus\Dispatchable; |
| 15 | 11 | use Illuminate\Http\Request as LaravelRequest; |
| 12 | +use Illuminate\Queue\InteractsWithQueue; |
|
| 13 | +use Illuminate\Queue\SerializesModels; |
|
| 14 | +use Jenssegers\Agent\Agent; |
|
| 16 | 15 | use Symfony\Component\HttpFoundation\Request as SymfonyRequest; |
| 16 | +use UAParser\Parser; |
|
| 17 | 17 | |
| 18 | 18 | class CrunchStatistics implements ShouldQueue |
| 19 | 19 | { |
@@ -3,9 +3,6 @@ |
||
| 3 | 3 | namespace Tracking\Models; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Database\Eloquent\Model as EloquentModel; |
| 6 | -use Illuminate\Database\Eloquent\Builder; |
|
| 7 | -use Illuminate\Support\Facades\Hash; |
|
| 8 | -use Auth; |
|
| 9 | 6 | |
| 10 | 7 | class Model extends EloquentModel |
| 11 | 8 | { |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Siravel\Notifications\Metrics; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Illuminate\Notifications\Notification; |
|
| 7 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 8 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 9 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
| 9 | +use Illuminate\Notifications\Notification; |
|
| 10 | 10 | use Tracking\Models\Metrics\LarametricsLog; |
| 11 | 11 | |
| 12 | 12 | class LogWritten extends Notification implements ShouldQueue |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Siravel\Notifications\Metrics; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Illuminate\Notifications\Notification; |
|
| 7 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 8 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 9 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
| 9 | +use Illuminate\Notifications\Notification; |
|
| 10 | 10 | use Tracking\Models\Metrics\LarametricsModel; |
| 11 | 11 | |
| 12 | 12 | class ModelChanged extends Notification implements ShouldQueue |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace Siravel\Notifications\Metrics; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Bus\Queueable; |
| 6 | -use Illuminate\Notifications\Notification; |
|
| 7 | 6 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 8 | 7 | use Illuminate\Notifications\Messages\MailMessage; |
| 9 | 8 | use Illuminate\Notifications\Messages\SlackMessage; |
| 9 | +use Illuminate\Notifications\Notification; |
|
| 10 | 10 | use Tracking\Models\Metrics\LarametricsRequest; |
| 11 | 11 | |
| 12 | 12 | class RouteRequested extends Notification implements ShouldQueue |
@@ -2,29 +2,28 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tracking; |
| 4 | 4 | |
| 5 | +use Illuminate\Support\Collection; |
|
| 5 | 6 | use Illuminate\Support\Facades\App; |
| 6 | 7 | use Illuminate\Support\Facades\View; |
| 7 | 8 | use Illuminate\Support\ServiceProvider; |
| 8 | -use Illuminate\Support\Collection; |
|
| 9 | 9 | // use Sitec\Laracogs\LaracogsProvider; |
| 10 | 10 | use Illuminate\Foundation\AliasLoader; |
| 11 | -use Illuminate\Support\Facades\Schema; |
|
| 12 | -use Route; |
|
| 13 | 11 | use Illuminate\Routing\Router; |
| 14 | -use Tracking\Models\Statistics\Path; |
|
| 15 | -use Tracking\Models\Statistics\Agent; |
|
| 16 | -use Tracking\Models\Statistics\Datum; |
|
| 17 | -use Tracking\Models\Statistics\Geoip; |
|
| 18 | -use Tracking\Models\Statistics\Route as RouteBase; |
|
| 19 | -use Tracking\Models\Statistics\Device; |
|
| 20 | -use Tracking\Models\Statistics\Request; |
|
| 21 | -use Tracking\Models\Statistics\Platform; |
|
| 22 | 12 | use Muleta\Traits\Providers\ConsoleTools; |
| 13 | +use Route; |
|
| 23 | 14 | use Tracking\Console\Commands\MigrateCommand; |
| 24 | 15 | use Tracking\Console\Commands\PublishCommand; |
| 25 | -use Tracking\Http\Middleware\TrackStatistics; |
|
| 26 | -use Tracking\Http\Middleware\Analytics; |
|
| 27 | 16 | use Tracking\Console\Commands\RollbackCommand; |
| 17 | +use Tracking\Http\Middleware\Analytics; |
|
| 18 | +use Tracking\Http\Middleware\TrackStatistics; |
|
| 19 | +use Tracking\Models\Statistics\Agent; |
|
| 20 | +use Tracking\Models\Statistics\Datum; |
|
| 21 | +use Tracking\Models\Statistics\Device; |
|
| 22 | +use Tracking\Models\Statistics\Geoip; |
|
| 23 | +use Tracking\Models\Statistics\Path; |
|
| 24 | +use Tracking\Models\Statistics\Platform; |
|
| 25 | +use Tracking\Models\Statistics\Request; |
|
| 26 | +use Tracking\Models\Statistics\Route as RouteBase; |
|
| 28 | 27 | use Tracking\Services\TrackingService; |
| 29 | 28 | |
| 30 | 29 | class TrackingProvider extends ServiceProvider |