Browse Source

Add OauthClient model

Daniel Supernault 6 years ago
parent
commit
14be898431
1 changed files with 18 additions and 0 deletions
  1. 18 0
      app/OauthClient.php

+ 18 - 0
app/OauthClient.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\SoftDeletes;
+
+class OauthClient extends Model
+{
+
+	protected $table = 'oauth_clients';
+
+	public function user()
+	{
+		return $this->belongsTo(User::class);
+	}
+
+}