Skip to content
/ core Public

Apiato container to contains parent classes or common code used by all containers provided by Larabeans.

License

Notifications You must be signed in to change notification settings

larabeans/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Larabeans > Core


Core

APIATO container that contains parent classes or common code used by all containers provided by Larabeans.


Overview


Config


Parents

Adds parent models, extending Apiato parent models under parent namespace.

  • Parents/Models/Model.php

Models

Below models are provided as default models having modification required for UUID or tenant. You can extend these or implement you own. Don't forget to update config file accordingly.

  • Core/Models/User.php
  • Core/Models/Role.php
  • Core/Models/Permission.php
  • Core/Parents/Models/Model.php

Note: Above model uses below listed traits, and these are commented by default, before proceeding to data migration, un comments as per your requirement. Just make sure relevant container is already installed.


Traits

Reusable Traits

  • HasUuid (Works along with uuider container)
  • MultiTenantable (Works along with tenanter container)
  • HasLocation (Works along with locationer container)
  • HasLocations (Works along with locationer container)
  • HasMobileLocation (Works along with locationer container)

Scopes

  • MultiTenantableScope (Works along with tenanter container)
  • Update CreateRoleRequest file to remove unique name rule and add ( 'name' => 'required|min:2|max:20|no_spaces' )

Larabeans > Core

About

Apiato container to contains parent classes or common code used by all containers provided by Larabeans.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages