Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 976 Bytes

users.md

File metadata and controls

30 lines (23 loc) · 976 Bytes

Users

Per default the users.yml schema file will be set to lockedHard=true.

This means that neither a controller or policy or any other file will be created. In fact that is really not required cause the package has already an implementation for the user controller.

If you need to modify the user schema you will need to modify the schema file from:

table: users
model: AMBERSIVE\Api\Models\User
resource: AMBERSIVE\Api\Resources\UserResource
collection: AMBERSIVE\Api\Resources\UserCollection
policy: AMBERSIVE\Api\Policies\Users\UserPolicy
locked: true
lockedHard: true

to

model: App\Models\Users\User
resource: App\Http\Resources\Users\UserResource
collection: App\Http\Resources\Users\UserCollection
policy: App\Policies\Users\Users\UserPoliy
locked: false
lockedHard: false

Otherwise the the folder structure might be weirrd and "broken" due to the fact that the namespace will be automatically created from the model declaration.