소스 검색

Add OauthClient model

Daniel Supernault 6 년 전
부모
커밋
14be898431
1개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  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);
+	}
+
+}