{"repo":"ytake/Laravel-Aspect","free":true,"listed":false,"github":"https://github.com/ytake/Laravel-Aspect","clone":"git clone https://github.com/ytake/Laravel-Aspect.git","description":"aspect oriented programming Package for laravel framework","language":"PHP","stars":138,"topics":["laravel-aspect","annotations","laravel","aop","lumen"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel-Aspect aspect-oriented programming Package for laravel framework This library is heavily inspired by the jcabi/jcabi-aspects. usage Laravel version Compatibility Laravel Package :--------- :---------- 5.0.x 1.x 5.1.x 1.x 5.2.x 1.x 5.3.x 1.x 5.4.x 1.x 5.5.x 2.0. 5.6.x 2.1. 5.7.x 3.0. 6.0.x 4.0 7.x 6.0 8.x 7.0 9.x 8.0 10.x 9.0 install Supported Auto-Discovery(^Laravel5.5) for Laravel9 Laravel-Aspect Supported Laravel5.6 added serviceProvider for Lumen Add App\\Providers\\LumenAspectServiceProvider to your bootstrap/app.php file. publish aspect module class more command options [--help] publish configure basic use tag option use provider register aspect module config/ytake-laravel-aop.php use classes property example notice - Must use a service container - Classes must be non-final - Methods must be public for Lumen override Ytake\\LaravelAspect\\AspectServiceProvider bootstrap/app.php Cache Clear Command PreCompile Command Annotations @Transactional for database transaction(illuminate/database) you must use the TransactionalModule option params description ----- ------- value (or array) database connection expect expect exception Multiple Transaction @Cacheable for cache(illuminate/cache) you must use the CacheableModule option params description ----- ------- key cache key cacheName cache name(merge cache key) driver Accessing Cache Driver(store) lifetime cache lifetime (default: 120min) tags Storing Tagged Cache Items negative(bool) for null value (default: false) @CacheE","default_branch":null,"files":null,"tree":[],"storefront":"/r/ytake","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ytake/Laravel-Aspect/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}