You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good afternoon, when I try to get all the cities on request
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use MenaraSolutions\Geographer\Earth;
use MenaraSolutions\Geographer\City;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$city = new City();
$city = $city->toArray();
View::share('city', $city);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
and
<pre>
<?php var_dump($city); ?>
</pre>
Have some error: Undefined index: long
what am I doing wrong?
The text was updated successfully, but these errors were encountered:
Good afternoon, when I try to get all the cities on request
and
Have some error: Undefined index: long
what am I doing wrong?
The text was updated successfully, but these errors were encountered: