Skip to content

Commit

Permalink
feat: php8.3 and laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
021-projects committed Mar 17, 2024
1 parent fb14e50 commit aa6d1db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
}
],
"require": {
"php": "^8.1|^8.2",
"php": "^8.1|^8.2|^8.3",
"ext-bcmath": "*",
"021/safely-transaction": "^1.0.1",
"laravel/framework": "^10.0"
"laravel/framework": "^10.0|^11.0"
},
"require-dev": {
"larastan/larastan": "^2.0",
"laravel/pint": "^1.13",
"orchestra/testbench": "^8.21",
"orchestra/testbench": "^8.21|^9.0",
"phpunit/phpunit": "^10.5"
},
"autoload": {
Expand Down
7 changes: 4 additions & 3 deletions database/migrations/create_transactions_table.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ return new class extends Migration
$table->id();
$table->nullableMorphs('from');
$table->nullableMorphs('to');
$table->unsignedDecimal('amount', 16, 8)->default(0)->index();
$table->unsignedDecimal('commission', 16, 8)->default(0);
$table->unsignedDecimal('received', 16, 8)
$table->decimal('amount', 16, 8)->unsigned()->default(0)->index();
$table->decimal('commission', 16, 8)->unsigned()->default(0);
$table->decimal('received', 16, 8)
->unsigned()
->default(0)
->comment('received = amount - commission')
->index();
Expand Down

0 comments on commit aa6d1db

Please sign in to comment.