first commit
This commit is contained in:
20
backend/app/Models/Auth/UsersLog.php
Normal file
20
backend/app/Models/Auth/UsersLog.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace App\Models\Auth;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UsersLog extends Model{
|
||||
|
||||
protected $table = 'users_log';
|
||||
|
||||
public function user(){
|
||||
return $this->hasOne(Users::class, 'uid', 'uid');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user