Other Features
Helpers
Custom global functions to make your life easier.
uses custom helper functions app/helpers.php
to improve your quality of development.
Available methods
module_enabled()
Check if module is enabled.
email_verification_enabled()
Check if User must verify email upon registration.
convert_keys_to_camel_case()
Convert all PHP array keys such as foo_bar
to fooBar
to follow Vue naming convention.
get_country_list()
Get list of all countries as array using REST Countries API.
get_timezones()
Get list of all available timezones as array.
pretty_date()
Convert Carbon date to prettified format.
diff_for_humans()
Convert Carbon date to human-readable format like just now, 2 hours ago, 5 months ago, etc.
calculate_reading_time()
Calculate reading time (for blog post content) based on number of words.
This is already implemented with Blog module.
Full docs coming soon…