소스 검색

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);
+    }
 }