]> BookStack Code Mirror - bookstack/blobdiff - app/EmailConfirmation.php
replace GPL diff lib with MIT lib
[bookstack] / app / EmailConfirmation.php
index a8f8f80b8cce665eab14a55b988bfb1658e6135c..e77b754bbdd7d2eedf878fcc8853f5981083c082 100644 (file)
@@ -1,15 +1,16 @@
-<?php
-
-namespace Oxbow;
-
-use Illuminate\Database\Eloquent\Model;
+<?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('Oxbow\User');
+        return $this->belongsTo(User::class);
     }
+    
 }