mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
18 lines
440 B
PHP
18 lines
440 B
PHP
<?php
|
|
namespace PonePaste\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AdminLog extends Model {
|
|
public const ACTION_LOGIN = 0;
|
|
public const ACTION_FAIL_LOGIN = 1;
|
|
public const ACTION_EDIT_CONFIG = 2;
|
|
protected $table = 'admin_logs';
|
|
protected $fillable = ['user_id', 'action', 'ip', 'time'];
|
|
|
|
public $timestamps = false;
|
|
|
|
public function user() {
|
|
return $this->belongsto(User::class);
|
|
}
|
|
}
|