Explorar o código

Add OauthClient model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
14be898431
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  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);
+	}
+
+}