@dskripchenko/laravel-admin 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,8 +39,10 @@ Admin::menu()->add(
39
39
  - **Dashboard** — 8 widget types (Stats/Chart/RecentList/Markdown/
40
40
  Iframe/Table/Heatmap/Gauge), per-user layout overrides, drag/resize,
41
41
  polling.
42
- - **Auth & RBAC** — multi-guard, AdminUser, Roles, 2FA TOTP, profile,
43
- impersonation, password reset, email verification.
42
+ - **Auth & RBAC** — multi-guard; a separate `admin_users` table or your
43
+ existing users ([shared strategy](docs/en/integration.md#2-who-signs-in-dedicated-or-shared)),
44
+ roles, 2FA TOTP, profile, impersonation, password reset, email
45
+ verification.
44
46
  - **Audit** — append-only log of admin actions (`AuditLog` + `Loggable`
45
47
  trait).
46
48
  - **Settings** — singleton-style configuration screens.
@@ -48,12 +50,13 @@ Admin::menu()->add(
48
50
  - **API tokens** — Sanctum integration in Profile (conditional).
49
51
  - **Theming** — light/dark + per-user preference, `@dskripchenko/ui`
50
52
  design tokens.
51
- - **i18n** — locale resolver (5-step priority), `TranslatableField`
53
+ - **i18n** — locale resolver (6-step priority), `TranslatableField`
52
54
  bridge for `dskripchenko/laravel-translatable`.
53
55
  - **Tenancy** — `TenantResolver` / `TenantContext` / `TenantScoped`
54
56
  trait. Strategy is host-side; we provide the contract.
55
57
  - **Plugins** — `AdminPlugin` interface; sister-packs use the same hook.
56
- - **Testing** — `ResourceTestCase`, `ScreenTestCase`, `ActsAsAdmin` trait.
58
+ - **Testing** — `AdminTestCase`, `ActsAsAdmin` and
59
+ `InteractsWithAdminResources` traits.
57
60
  - **OpenAPI 3.0** — generated from docblock `@input`/`@output` tags.
58
61
 
59
62
  ## Install
@@ -67,9 +70,14 @@ That's it — the admin SPA ships prebuilt, no Node needed. Visit
67
70
  `/admin/login`. [Getting started](docs/en/getting-started.md) walks through
68
71
  the first resource and the custom-build mode for your own Vue components.
69
72
 
73
+ Adding it to an application that already has users, its own API or a proxy?
74
+ Read [Adding the admin to an existing application](docs/en/integration.md) —
75
+ including `admin:install --shared`, which lets your existing users sign in.
76
+
70
77
  ## Documentation
71
78
 
72
79
  - [Getting started](docs/en/getting-started.md)
80
+ - [Adding the admin to an existing application](docs/en/integration.md)
73
81
  - [Architecture](docs/en/architecture.md)
74
82
  - Concepts: [Resources](docs/en/concepts/resources.md) ·
75
83
  [Screens](docs/en/concepts/screens.md) ·
@@ -92,7 +100,8 @@ the first resource and the custom-build mode for your own Vue components.
92
100
  - **PHP** ^8.2
93
101
  - **Laravel** 11 / 12 / 13
94
102
  - **Vue** ^3.4 + TypeScript + Pinia + Vue Router
95
- - **Bundle** — `@dskripchenko/laravel-admin` ~62 KB gz (esm + cjs)
103
+ - **Frontend** — prebuilt SPA ~350 KB gz JS + ~35 KB gz CSS; the npm
104
+ library entry for custom builds ~260 KB gz (Vue, Pinia and the UI kit external)
96
105
  - **WYSIWYG** — `@dskripchenko/wysiwyg` by default; Quill and TinyMCE
97
106
  adapters ship in the npm package (`/quill`, `/tinymce`)
98
107
 
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "resources/ts/app.ts": {
3
- "file": "assets/app-POyU3uzR.js",
3
+ "file": "assets/app-Bt8LixFu.js",
4
4
  "name": "app",
5
5
  "src": "resources/ts/app.ts",
6
6
  "isEntry": true,
7
7
  "css": [
8
- "assets/app-C5UPrfEf.css"
8
+ "assets/app-DvKbADye.css"
9
9
  ]
10
10
  }
11
11
  }