]> BookStack Code Mirror - bookstack/blobdiff - app/EmailConfirmation.php
replace GPL diff lib with MIT lib
[bookstack] / app / EmailConfirmation.php
index 974cf201c78f7887a626858670851bcd00b71eb8..e77b754bbdd7d2eedf878fcc8853f5981083c082 100644 (file)
@@ -1,13 +1,16 @@
-<?php
-
-namespace BookStack;
+<?php namespace BookStack;
 
 class EmailConfirmation extends Model
 {
     protected $fillable = ['user_id', 'token'];
 
+    /**
+     * Get the user that this confirmation is attached to.
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
+     */
     public function user()
     {
-        return $this->belongsTo('BookStack\User');
+        return $this->belongsTo(User::class);
     }
+    
 }