Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

sparkison/laravel-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helpers

Codacy Badge StyleCI License Total Downloads Latest Stable Version

Helper classes dependency for Laravel Enso.

Includes

Classes

  • An abstract Enum class which can be used to build an enumeration out of an array or a config file and comes with a set of helper functions
  • An Obj class, with a constructor for building an object from an array, that provides a suite of helper functions, such as: all(), __toString(), toJson(), toArray(), get($key), set($key, $value), has($key), keys(), values() and more

Exceptions

  • A generic exception: EnsoException is available also with a Facade. This exception is extended by all the other Enso specific exceptions and it is not reported by the Laravel's Exception Handler

Traits

  • IsActive - adds whereActive() and whereDisabled() scopes, isActive() and isDisabled() helpers, for models that have a boolean is_active property

Usage

Be sure to check out the full documentation for this package available at docs.laravel-enso.com

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages