@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | }); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param HasGeoAbilities $models |
|
39 | + */ |
|
37 | 40 | public function addGeo($models) |
38 | 41 | { |
39 | 42 | if ($models->isEmpty()) { |
@@ -45,6 +48,9 @@ discard block |
||
45 | 48 | event(new ModelsImported($models)); |
46 | 49 | } |
47 | 50 | |
51 | + /** |
|
52 | + * @param HasGeoAbilities $models |
|
53 | + */ |
|
48 | 54 | public function removeGeo($models) |
49 | 55 | { |
50 | 56 | if ($models->isEmpty()) { |
@@ -3,11 +3,11 @@ |
||
3 | 3 | namespace Leitom\Geo; |
4 | 4 | |
5 | 5 | use Illuminate\Support\Arr; |
6 | -use Leitom\Geo\Facades\Geo; |
|
6 | +use Illuminate\Support\Collection as BaseCollection; |
|
7 | 7 | use Illuminate\Support\Facades\DB; |
8 | -use Leitom\Geo\Events\ModelsRemoved; |
|
9 | 8 | use Leitom\Geo\Events\ModelsImported; |
10 | -use Illuminate\Support\Collection as BaseCollection; |
|
9 | +use Leitom\Geo\Events\ModelsRemoved; |
|
10 | +use Leitom\Geo\Facades\Geo; |
|
11 | 11 | |
12 | 12 | trait HasGeoAbilities |
13 | 13 | { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Leitom\Geo; |
4 | 4 | |
5 | -use Leitom\Geo\Facades\Geo; |
|
6 | 5 | use Illuminate\Support\Collection; |
7 | -use Leitom\Geo\Events\ModelsRemoved; |
|
8 | 6 | use Leitom\Geo\Events\ModelsImported; |
7 | +use Leitom\Geo\Events\ModelsRemoved; |
|
8 | +use Leitom\Geo\Facades\Geo; |
|
9 | 9 | |
10 | 10 | class ModelObserver |
11 | 11 | { |