jclavo / profiles
这是一个用于管理市民部配置文件的软件包
0.6.0
2022-09-29 13:35 UTC
Requires
- php: ^8.0
- illuminate/database: ^7.0|^8.0|^9.0
Requires (Dev)
- fakerphp/faker: ^1.9.1
- orchestra/testbench: ^7.8
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-29 06:14:56 UTC
README
安装
您可以通过composer安装此包
composer require jclavo/profiles
之后,在app.php
中添加包提供者
'providers' => [ ... /* * Package Service Providers... */ Jclavo\Profiles\Providers\ProfilesProvider::class, ... ]
用法
use Jclavo\Profiles\Models\Profile; $profile = new Profile(); $profile->name = 'my new profile'; $profile->description = 'description for my new profile'; $profile->activated = true; $profile->fixed = false; $profile->save();
测试
./vendor/bin/phpunit ./vendor/bin/phpunit tests/Unit/ProfileTest.php
致谢
许可协议
MIT许可协议(MIT)。更多信息请参阅许可文件。