File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212* build(deps): bump axios from 1.6.2 to 1.6.3 by @dependabot in https://github.com/bavix/laravel-wallet/pull/821
1313
1414### Added
15- * add wallet getDynamicSlug by @rez1dent3 in https://github.com/bavix/laravel-wallet/pull/822
15+ * add wallet getDynamicDefaultSlug by @rez1dent3 in https://github.com/bavix/laravel-wallet/pull/822
1616
1717## [ 10.0.2] - 2023-12-14
1818### Bump
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ public function wallet(): MorphOne
3535 ->withDefault (static function (WalletModel $ wallet , object $ holder ) use ($ castService ) {
3636 $ model = $ castService ->getModel ($ holder );
3737
38- $ slug = method_exists ($ model , 'getDynamicSlug ' )
39- ? $ model ->getDynamicSlug ()
38+ $ slug = method_exists ($ model , 'getDynamicDefaultSlug ' )
39+ ? $ model ->getDynamicDefaultSlug ()
4040 : config ('wallet.wallet.default.slug ' , 'default ' );
4141
4242 $ wallet ->forceFill (array_merge (config ('wallet.wallet.creating ' , []), [
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getTable(): string
2828 return 'users ' ;
2929 }
3030
31- public function getDynamicSlug (): string
31+ public function getDynamicDefaultSlug (): string
3232 {
3333 return 'default- ' . $ this ->email ;
3434 }
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ public function testDefaultWalletCustomize(): void
303303 self ::assertSame (1 , $ wallet ->meta ['internal ' ] ?? 0 );
304304 }
305305
306- public function testGetDynamicSlug (): void
306+ public function testgetDynamicDefaultSlug (): void
307307 {
308308 /** @var UserDynamic $user */
309309 $ user = UserDynamicFactory::new ()->create ();
You can’t perform that action at this time.
0 commit comments