我一直在尝试通过ssh客户端工具putty连接我的PHP my admin,但是我的URL被从127.0.0.1:8888/phpmyadmin重定向到example.com:8080/phpmyadmin,并抛出以下错误For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.
我在eloquent Laravel中有一个嵌套的BelongsTo关系,当我试图访问它的时候,它成功了一级,但当我试图访问它的时候,它成功了两级。它得到错误“尝试获取非对象的属性”
这是我的结构模型
OrderProduct.php
public function product()
{
return $this->belongsTo('App\Models\Product');
}
Product.php
public function domain()
{
return $this->belongsTo('App\Models\Doma