jclavo / profiles
This a package to manage profiles on Ministerio da Cidadania
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-04-29 04:54:10 UTC
README
Installation
You can install the package via composer:
composer require jclavo/profiles
After that, add the package providers on app.php
'providers' => [ ... /* * Package Service Providers... */ Jclavo\Profiles\Providers\ProfilesProvider::class, ... ]
Usage
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();
Testing
./vendor/bin/phpunit ./vendor/bin/phpunit tests/Unit/ProfileTest.php
Credits
License
The MIT License (MIT). Please see License File for more information.