table of content:
In this project with laravel 8 and php 8 I want to create a GemTransactionService to handle gem of specific user For more information look at tests/Feature/GemTransactionServiceTest
$user = User::factory()->create();
$gem = Gem::factory()->create(['user_id' => $user->id , 'gem'=>0]);
$gemTransactionService = new GemTransactionService();
$gemTransactionAtt = [
'value'=> 10,
'type'=> 'TYPE_OF_CHANGE',
'sign'=> 1,
];
$gemTransaction = $gemTransactionService->insertGemTransaction($gemTransactionAtt , $gem);
composer install
composer test
# // [Add,Change,Update,Typo,Composer] ..
# -> can be issue number or -