Sfoglia il codice sorgente

Update AccountLog model

Daniel Supernault 6 anni fa
parent
commit
01c7a95ef5
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      app/AccountLog.php

+ 4 - 1
app/AccountLog.php

@@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model;
 
 class AccountLog extends Model
 {
-    //
+    public function user()
+    {
+    	return $this->belongsTo(User::class);
+    }
 }