This commit is contained in:
root
2019-12-17 17:12:27 +08:00
parent 89a8fc9a00
commit 7abcad6970
5 changed files with 74 additions and 3 deletions

View File

@ -2,7 +2,7 @@
namespace App\Models;
use App\Events\ServerLogSaveEvent;
use App\Events\ServerCreatedEvent;
use Illuminate\Database\Eloquent\Model;
class ServerLog extends Model
@ -10,5 +10,6 @@ class ServerLog extends Model
protected $table = 'v2_server_log';
protected $dateFormat = 'U';
protected $dispatchesEvents = [
'created' => ServerCreatedEvent::class
];
}