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