'latlong' => [
// Whether to enable this extension, defaults to true
'enable' => true,
// Specify the default provider
'default' => 'google',
// According to the selected provider above, fill in the corresponding api_key
'providers' => [
'google' => [
'api_key' => '***********8siSug',
]
]
]
ViewException In latlong.blade.php line 11 :
Trying to access array offset on value of type null (View: /var/www/html/estiqdam/vendor/laravel-admin-ext/latlong/resources/views/latlong.blade.php)
Hello, here's my case:
Laravel-admin: v1.8.19 laravel-admin-ext/latlong: v1.2.4
My code:
admin.php
OfficeController.php:
$form->latlong('lat', 'long', 'Office Location');
I get the following error:
Stack trace:
0 /var/www/html/estiqdam/vendor/laravel-admin-ext/latlong/src/../resources/views/latlong.blade.php(11): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
1 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('/var/www/html/e...')
2 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem{closure}()
3 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()
4 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\View\Engines\PhpEngine->evaluatePath()
5 /var/www/html/estiqdam/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get()
6 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(139): Facade\Ignition\Views\Engines\CompilerEngine->get()
7 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\View\View->getContents()
8 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\View\View->renderContents()
9 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Traits/HasAssets.php(338): Illuminate\View\View->render()
10 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Form/Field.php(1553): Encore\Admin\Admin::component()
11 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Form/Field.php(1565): Encore\Admin\Form\Field->render()
12 /var/www/html/estiqdam/vendor/laravel-admin-ext/latlong/src/Latlong.php(125): Encore\Admin\Form\Field->fieldRender()
13 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/../resources/views/form.blade.php(31): Encore\Admin\Latlong\Latlong->render()
14 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(107): require('/var/www/html/e...')
15 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(108): Illuminate\Filesystem\Filesystem::Illuminate\Filesystem{closure}()
16 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(58): Illuminate\Filesystem\Filesystem->getRequire()
17 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(61): Illuminate\View\Engines\PhpEngine->evaluatePath()
18 /var/www/html/estiqdam/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get()
19 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(139): Facade\Ignition\Views\Engines\CompilerEngine->get()
20 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\View\View->getContents()
21 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\View\View->renderContents()
22 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Form/Builder.php(688): Illuminate\View\View->render()
23 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Form.php(1461): Encore\Admin\Form\Builder->render()
24 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Layout/Column.php(100): Encore\Admin\Form->render()
25 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Layout/Row.php(80): Encore\Admin\Layout\Column->build()
26 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Layout/Content.php(215): Encore\Admin\Layout\Row->build()
27 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Layout/Content.php(308): Encore\Admin\Layout\Content->build()
28 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Http/Response.php(69): Encore\Admin\Layout\Content->render()
29 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Http/Response.php(35): Illuminate\Http\Response->setContent()
30 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(820): Illuminate\Http\Response->__construct()
31 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(789): Illuminate\Routing\Router::toResponse()
32 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(721): Illuminate\Routing\Router->prepareResponse()
33 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing{closure}()
34 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Middleware/Permission.php(46): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
35 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Encore\Admin\Middleware\Permission->handle()
36 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Middleware/Bootstrap.php(15): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
37 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Encore\Admin\Middleware\Bootstrap->handle()
38 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Middleware/LogOperation.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
39 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Encore\Admin\Middleware\LogOperation->handle()
40 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Middleware/Pjax.php(24): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
41 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Encore\Admin\Middleware\Pjax->handle()
42 /var/www/html/estiqdam/vendor/encore/laravel-admin/src/Middleware/Authenticate.php(28): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
43 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Encore\Admin\Middleware\Authenticate->handle()
44 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
45 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle()
46 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
47 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
48 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
49 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
50 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
51 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
52 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle()
53 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
54 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
55 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
56 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle()
57 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
58 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(723): Illuminate\Pipeline\Pipeline->then()
59 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(698): Illuminate\Routing\Router->runRouteWithinStack()
60 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\Routing\Router->runRoute()
61 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Routing/Router.php(651): Illuminate\Routing\Router->dispatchToRoute()
62 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\Routing\Router->dispatch()
63 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}()
64 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
65 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
66 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
67 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
68 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
69 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
70 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
71 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
72 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
73 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
74 /var/www/html/estiqdam/vendor/fruitcake/laravel-cors/src/HandleCors.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
75 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle()
76 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
77 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Http\Middleware\TrustProxies->handle()
78 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
79 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then()
80 /var/www/html/estiqdam/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
81 /var/www/html/estiqdam/index.php(55): Illuminate\Foundation\Http\Kernel->handle()
82 {main}