'boolean', 'location' => 'array', 'login_successful' => 'boolean', 'login_at' => 'datetime', 'logout_at' => 'datetime', ]; /** * Create a new Eloquent AuthenticationLog instance */ public function __construct(array $attributes = []) { if (! isset($this->connection)) { $this->setConnection(config('authentication-log.db_connection')); } parent::__construct($attributes); } /** * Get the table associated with the model. */ public function getTable() { return config('authentication-log.table_name', parent::getTable()); } /** * MorphTo relation to get the associated authenticatable user * * @return MorphTo<\Illuminate\Database\Eloquent\Model, AuthenticationLog> */ public function authenticatable() { return $this->morphTo(); } }