1
0
Daniel Supernault 6 жил өмнө
parent
commit
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);
+    }
 }