martanto / magma-trait
MAGMA印尼应用程序的特质和服务生成器
v1.0.3
2024-01-14 06:36 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
此包用于为MAGMA印尼生成特质和服务
安装
您可以通过composer安装此包
composer require martanto/magma-trait
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="magma-trait-config"
这是发布配置文件的内容
return [ /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | */ 'model' => config('auth.providers.users.model'), /* |-------------------------------------------------------------------------- | MAGMA API url |-------------------------------------------------------------------------- | | This one define where the MAGMA API url located | */ 'api_url' => 'https://magma.esdm.go.id/api', ];
使用方法
use AuthenticatesUsers; use ByteConverter; use ColorPalettesTrait; use GenerateSlug; use GenerateUUID; use JsonFromFileTrait; use LoginWithMagma; use ThrottlesLogins;
变更日志
有关最近更改的更多信息,请参阅变更日志。
致谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。