Skip to content

Commit

Permalink
Merge pull request #2 from tochka-developers/update-requirements
Browse files Browse the repository at this point in the history
PHP 8.2 + Laravel 10 support
  • Loading branch information
yekhlakov authored Jun 30, 2023
2 parents c4b4436 + cbf31b6 commit 0036a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "Simple history for Laravel models",
"type": "package",
"require": {
"php": "^7.4|8.0.*|8.1.*",
"php": "^7.4|8.0.*|8.1.*|8.2.*",
"ext-json": "*",
"ext-pdo": "*",
"illuminate/database": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
"illuminate/database": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 1 addition & 3 deletions src/HistoryObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ public static function saveData(Model $model, string $action): void
$entity_name = $model->getTable();
$entity_id = $model->{$model->getKeyName()};
try {
$query = DB::table(self::getTableName());

$query->insert([
DB::table(self::getTableName())->insert([
'entity_name' => $entity_name,
'entity_id' => $entity_id,
'action' => $action,
Expand Down

0 comments on commit 0036a4e

Please sign in to comment.