Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

akaunting/akaunting

9348 stars
1 code files
View akaunting/akaunting on GitHub

app/Traits/Modules.php

Open in GitHub
use Cache;
use Date;
 
trait Modules
{
//
public function getModules($data = [])
{
$key = 'apps.app.' . $this->getDataKeyOfModules($data);
 
$items = Cache::get($key);
 
if (!empty($items)) {
return $items;
}
 
$items = static::getResponseData('GET', 'apps/items');
 
Cache::put($key, $items, Date::now()->addHour());
 
return $items;
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.