Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.08 KB

DEVELOPMENT.md

File metadata and controls

47 lines (39 loc) · 1.08 KB

DEVELOPMENT

Installing

  1. Clone the repository:
    git clone https://github.com/uwla/lacl
  2. Install dependencies:
    composer install
  3. Refresh composer:
    composer dump-autoload

Or, in a single line:

git clone https://github.com/uwla/lacl && cd lacl && composer install && composer dump-autoload

Project structure

  • database/migrations/: database migration files
  • src/: source files
  • src/Contracts/: interfaces used in the package
  • src/Models/: database eloquent models
  • src/Traits/: traits provided by the package
  • src/AclServiceProvider.php: this Service Provider publishes migration files
  • tests/: test files
  • tests/app/: sample app for mocking tests
  • tests/Feature/: integration tests

Testing

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