Supported Traits

Table of contents

  1. Overview
  2. HasTimestamps
  3. PasswordPolicy


1. Overview Table of Contents

This framework currently supports 4 traits intended for developer use:

  • HasTimestamps
  • JsonResponse - More details here.
  • Notifiable - More details here
  • PasswordPolicy


2. HasTimestamps Table of Contents

Contains a collection of functions for enforcing your project’s password policy:

  • isMaxLength - True if this policy is enabled
  • isMinLength - True if this policy is enabled
  • lowerChar - True if this policy is enabled
  • maxLength - Maximum allowed length
  • minLength - Minimum allowed length
  • numericChar - True if this policy is enabled
  • specialChar - True if this policy is enabled
  • upperChar - True if this policy is enabled


3. PasswordPolicy Table of Contents

Supports timestamp related features for your $created_at and $updated_at database fields. The timeStamps function is used to manage these fields.