[英]Voyager admin panel on Laravel 5.3 could not find a storage symlink
[英]Render Google Map in Laravel Voyager admin panel
我正在尝试在 Voyager 管理面板中显示谷歌地图我使用了面包,但出现错误:
Invalid argument supplied for foreach() (View: path\vendor\tcg\voyager\resources\views\formfields\coordinates.blade.php) (View: paht\vendor\tcg\voyager\resources\views\formfields\coordinates.blade.php)
任何解决方案?
您应该在模型中添加特征空间
使用 TCG\\Voyager\\Traits\\Spatial;
并用坐标初始化字段
use TCG\Voyager\Traits\Spatial;
class Product extends Model
{
use Spatial;
protected $spatial = ['coordinates']; //here is going your field name; should be the point type;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.