Explorar el Código

Update Contact model

Daniel Supernault hace 6 años
padre
commit
fd6a4526ee
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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);
+    }
 }