- Clone the repository:
git clone https://github.com/uwla/lacl
- Install dependencies:
composer install
- Refresh composer:
composer dump-autoload
Or, in a single line:
git clone https://github.com/uwla/lacl && cd lacl && composer install && composer dump-autoload
database/migrations/
: database migration filessrc/
: source filessrc/Contracts/
: interfaces used in the packagesrc/Models/
: database eloquent modelssrc/Traits/
: traits provided by the packagesrc/AclServiceProvider.php
: this Service Provider publishes migration filestests/
: test filestests/app/
: sampleapp
for mocking teststests/Feature/
: integration tests
To run the tests you need pdo_sqlite
extension installed and enabled in php.ini
.
- Run all tests:
composer test
- Run a single test (for example,
HasPermissionTest
):composer test ./tests/Feature/HasPermissionTest.php