Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Users

LicenseStableDownloadsPHPIssuesMerge Requests

Description

Users is Enso's backend package for application account administration.

It manages the user entity itself, profile and access relationships, API tokens, active sessions, password resets, select options, and table/export endpoints, while integrating with people, roles, user groups, files, companies, and core preferences.

Installation

Install the package:

composer require laravel-enso/users

Run the migrations:

php artisan migrate

Features

  • Full user CRUD with create, edit, show, reset password, and destroy flows.
  • Session inspection and forced session termination endpoints.
  • API token create/store/index/destroy endpoints.
  • Table bootstrap, data, and export endpoints.
  • Rich User model with role/group checks, preferences, and login relations.
  • Sanctum integration through HasApiTokens.

Usage

Main user routes:

  • prefix: api/administration/users
  • name prefix: administration.users.

User endpoints:

  • GET create/{person}
  • POST /
  • GET {user}/edit
  • PATCH {user}
  • DELETE {user}
  • GET initTable
  • GET tableData
  • GET exportExcel
  • GET options
  • GET {user}
  • POST {user}/resetPassword

Token endpoints:

  • administration.token.create
  • administration.token.store
  • administration.token.index
  • administration.token.destroy

Session endpoints:

  • administration.session.index
  • administration.session.destroy

Main model:

  • LaravelEnso\Users\Models\User

Notable methods:

  • canAccess(string $route)
  • isAdmin()
  • isSupervisor()
  • isSuperior()
  • belongsToAdminGroup()
  • preferredLocale()
  • initPreferences()

API

This package exposes its backend integration through the routes, controllers, services, jobs, and configuration points referenced in the usage examples above.

Consumers should rely on the published config keys, documented route groups, and explicit service classes shown in the examples. Internal helper classes, listeners, casts, and background jobs are implementation details unless the README calls them out as extension points.

Depends On

Required Enso packages:

  • laravel-enso/avatars ↗
  • laravel-enso/companies ↗
  • laravel-enso/core ↗
  • laravel-enso/dynamic-methods ↗
  • laravel-enso/files ↗
  • laravel-enso/forms ↗
  • laravel-enso/helpers ↗
  • laravel-enso/people ↗
  • laravel-enso/rememberable ↗
  • laravel-enso/roles ↗
  • laravel-enso/select ↗
  • laravel-enso/tables ↗
  • laravel-enso/user-groups ↗

Companion frontend package:

  • @enso-ui/users ↗

Contributions

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

Thank you to all the people who already contributed to Enso!

Edit this page on GitHub
Last Updated: 4/20/2026, 7:34:34 PM
Prev
User Groups
Next
Versions