First commit
This commit is contained in:
33
app/UserAccessToken.php
Normal file
33
app/UserAccessToken.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserAccessToken extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = "users_access_tokens";
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
"access_token",
|
||||
"refresh_token",
|
||||
"expires_in"
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the user that owns the access token.
|
||||
*/
|
||||
public function user() {
|
||||
return $this->belongsTo("App\User");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user