Pārlūkot izejas kodu

Add OauthClient model

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
14be898431
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  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);
+	}
+
+}