Show local/prod in the Filament topbar, jump to create post in one click, tighten sidebar spacing, and stop Hello World from 500ing when its tables are missing. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.4 KiB
Markdown
34 lines
1.4 KiB
Markdown
# LaraLog Features
|
|
|
|
Modern blog migrated from SaBlog-X: Filament admin, themes, plugins, sablog import, S3 attachments, Workerman AI queue.
|
|
|
|
## Local development
|
|
|
|
- Site: http://laralog.test
|
|
- Admin: http://laralog.test/admin
|
|
- Account: `admin@laralog.test` / `password`
|
|
- Database: MySQL `laralog` (Herd, root / empty password)
|
|
- Remote: `git@gitea.neatcn.com:gouki/laralog.git`
|
|
|
|
See `README.md` and `docs/` for install, import, plugins, and themes.
|
|
|
|
## Admin chrome
|
|
|
|
- Top-right badge shows the current app environment (`local` / `prod` / others).
|
|
- Top-right **写文章** button jumps to `/admin/posts/create`.
|
|
- Sidebar nav is compacted (Filament default `gap-y-7` / `py-8` is too tall for this site).
|
|
|
|
## Hello World plugin
|
|
|
|
- Enabling a plugin now runs that plugin's `database/migrations` automatically.
|
|
- Plugin boot / hook failures are isolated so one plugin cannot take down the whole admin.
|
|
- `/hello-world` stays available even if `hello_world_logs` is missing.
|
|
|
|
## Media library (xpier)
|
|
|
|
- Package: `xpier/filament-media-library` (admin Media Library + MediaPicker).
|
|
- **Markdown body must store `` or `[name](media:ID)`**, never a CDN/object-storage URL. HTML uses `[media=ID]`.
|
|
- Insert flow: pick a file → **Insert into body**. Cover uses `cover_media_id`.
|
|
- Legacy sablog `[attach=ID]` / `{{attach:ID}}` still render from Spatie media.
|
|
- Details: `docs/media.md`.
|