├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .phpmd.cleancode.xml ├── .travis.yml ├── LICENSE.md ├── composer.json ├── config └── cacheable.php ├── phpstan.neon ├── phpunit.xml ├── readme.md ├── src ├── CacheableDecorator.php ├── CacheableObserver.php ├── CacheableService.php ├── Contracts │ ├── CacheableModel.php │ └── CacheableRepository.php ├── Events │ ├── CacheableEvent.php │ ├── CacheableInvalidated.php │ └── CacheableInvalidating.php ├── Exceptions │ └── MethodNotFoundException.php ├── Facade.php ├── ServiceProvider.php └── Traits │ ├── Model │ └── CacheableTrait.php │ └── Repository │ └── CacheableTrait.php └── tests ├── CacheableEventTests.php ├── DecoratorTests.php ├── EventTests.php ├── MethodNotFoundExceptionTests.php ├── ModelTraitTests.php ├── ObservedModelTests.php ├── RepositoryTraitTests.php ├── ServiceTests.php ├── Supports ├── Factories │ ├── UserFactory.php │ └── VideoFactory.php ├── Migrations │ ├── 2018_02_04_000000_create_users_table.php │ └── 2018_02_04_000000_create_videos_table.php ├── Models │ ├── User.php │ └── Video.php └── Repositories │ ├── EloquentRepository.php │ ├── UserRepository.php │ └── VideoRepository.php └── TestCase.php /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/.gitignore -------------------------------------------------------------------------------- /.phpmd.cleancode.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/.phpmd.cleancode.xml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/LICENSE.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/composer.json -------------------------------------------------------------------------------- /config/cacheable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/config/cacheable.php -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/phpunit.xml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/readme.md -------------------------------------------------------------------------------- /src/CacheableDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/CacheableDecorator.php -------------------------------------------------------------------------------- /src/CacheableObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/CacheableObserver.php -------------------------------------------------------------------------------- /src/CacheableService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/CacheableService.php -------------------------------------------------------------------------------- /src/Contracts/CacheableModel.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Contracts/CacheableModel.php -------------------------------------------------------------------------------- /src/Contracts/CacheableRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Contracts/CacheableRepository.php -------------------------------------------------------------------------------- /src/Events/CacheableEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Events/CacheableEvent.php -------------------------------------------------------------------------------- /src/Events/CacheableInvalidated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Events/CacheableInvalidated.php -------------------------------------------------------------------------------- /src/Events/CacheableInvalidating.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Events/CacheableInvalidating.php -------------------------------------------------------------------------------- /src/Exceptions/MethodNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Exceptions/MethodNotFoundException.php -------------------------------------------------------------------------------- /src/Facade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Facade.php -------------------------------------------------------------------------------- /src/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/ServiceProvider.php -------------------------------------------------------------------------------- /src/Traits/Model/CacheableTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Traits/Model/CacheableTrait.php -------------------------------------------------------------------------------- /src/Traits/Repository/CacheableTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/src/Traits/Repository/CacheableTrait.php -------------------------------------------------------------------------------- /tests/CacheableEventTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/CacheableEventTests.php -------------------------------------------------------------------------------- /tests/DecoratorTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/DecoratorTests.php -------------------------------------------------------------------------------- /tests/EventTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/EventTests.php -------------------------------------------------------------------------------- /tests/MethodNotFoundExceptionTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/MethodNotFoundExceptionTests.php -------------------------------------------------------------------------------- /tests/ModelTraitTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/ModelTraitTests.php -------------------------------------------------------------------------------- /tests/ObservedModelTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/ObservedModelTests.php -------------------------------------------------------------------------------- /tests/RepositoryTraitTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/RepositoryTraitTests.php -------------------------------------------------------------------------------- /tests/ServiceTests.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/ServiceTests.php -------------------------------------------------------------------------------- /tests/Supports/Factories/UserFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Factories/UserFactory.php -------------------------------------------------------------------------------- /tests/Supports/Factories/VideoFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Factories/VideoFactory.php -------------------------------------------------------------------------------- /tests/Supports/Migrations/2018_02_04_000000_create_users_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Migrations/2018_02_04_000000_create_users_table.php -------------------------------------------------------------------------------- /tests/Supports/Migrations/2018_02_04_000000_create_videos_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Migrations/2018_02_04_000000_create_videos_table.php -------------------------------------------------------------------------------- /tests/Supports/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Models/User.php -------------------------------------------------------------------------------- /tests/Supports/Models/Video.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Models/Video.php -------------------------------------------------------------------------------- /tests/Supports/Repositories/EloquentRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Repositories/EloquentRepository.php -------------------------------------------------------------------------------- /tests/Supports/Repositories/UserRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Repositories/UserRepository.php -------------------------------------------------------------------------------- /tests/Supports/Repositories/VideoRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/Supports/Repositories/VideoRepository.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suitmedia/laravel-cacheable/HEAD/tests/TestCase.php --------------------------------------------------------------------------------