Skip to content

Releases: caffeinated/modules

v2.1.5

08 Jul 16:55
Compare
Choose a tag to compare
Fixed #86

v2.1.4

07 Jul 16:36
Compare
Choose a tag to compare
Fix #85

v2.1.3

06 Jul 17:52
Compare
Choose a tag to compare
Ignore non-existant modules directory

v2.1.2

06 Jul 17:42
Compare
Choose a tag to compare
Possible fix for #81

v2.1.1

06 Jul 15:03
Compare
Choose a tag to compare

Fix module:seed Artisan command.

v2.1

06 Jul 06:59
Compare
Choose a tag to compare

This release sees some major improvements to the code structure. There have also been some minor changes compared to the previous release (as will be shown below). This release paves way for the inclusion of the means to store and manage module manifest information within a database as well as caching capabilities to speed up your application.

A lot of focus was put into improving the performance in this release (even without caching capabilities). Basic tests show that the loading time of a single module went from roughly 10ms - 15ms to between 1ms - 5ms. A lot of this had to do with unnecessary file reads taking place upon every page load. The inclusion of caching as well as the ability to store and retrieve manifest information from the database in future releases should also drastically improve performance.

Notable Changes

  • Extracted methods out into Repositories, opening the door for multiple storage options (e.g. database), as well as Decoration (e.g. caching)
  • All facade methods now return Collections in place of arrays.
  • The following is the complete list of Facade methods available:
Method Description
all() Get all modules.
slugs() Get all module slugs.
where($key, $value) Get modules based on where clause.
sortBy($key) Sort modules by the given key in ascending order.
sortByDesc($key) Sort modules by the given key in descending order.
exists($slug) Determines if the given module exists.
count() Returns a count of all modules.
getProperties($slug) Returns the modules defined properties.
getProperty($property, $default = null) Returns the given module property.
setProperty($property, $value) Set the given module property value.
enabled() Get all enabled modules.
disabled() Get all disabled modules.
isEnabled($slug) Determines if the specified module is enabled.
isDisabled($slug) Determines if the specified module is disabled.
enable($slug) Enables the specified module.
disable($slug) Disables the specified module.

v2.0.2

26 Jun 17:05
Compare
Choose a tag to compare
Fix #75

v2.0.1

12 Jun 18:44
Compare
Choose a tag to compare
Fix Laravel Composer dependencies

v1.2.3

12 Jun 18:41
Compare
Choose a tag to compare
Fix Laravel Composer dependencies