浏览代码

Update Contact model

Daniel Supernault 6 年之前
父节点
当前提交
fd6a4526ee
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Contact.php

+ 5 - 0
app/Contact.php

@@ -10,4 +10,9 @@ class Contact extends Model
     {
     	return $this->belongsTo(User::class);
     }
+
+    public function adminUrl()
+    {
+    	return url('/i/admin/contact/show/' . $this->id);
+    }
 }