Store media:ID in article bodies instead of CDN URLs, and keep sablog attach tokens as a fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
993 B
Markdown
22 lines
993 B
Markdown
# LaraBlog Features
|
|
|
|
Laravel blog platform with sablog `.shtml` URLs, Filament admin, plugins, themes, and `/api/v1`.
|
|
|
|
## Local development
|
|
|
|
- Site: http://larablog.test
|
|
- Admin: http://larablog.test/admin
|
|
- Account: `admin@larablog.test` / `password`
|
|
- Database: MySQL `larablog` (Herd, root / empty password)
|
|
- Remote: `git@gitea.neatcn.com:gouki/larablog.git`
|
|
|
|
See `README.md` and `docs/ops/install.md` for full setup. Import old sablog data with `docs/ops/import.md` (do not seed demo data on a migration target).
|
|
|
|
## Media library (xpier)
|
|
|
|
- Package: `xpier/filament-media-library`. New files/covers go through Media Library; sablog `attachments` stay for import.
|
|
- **Markdown body stores `` / `[name](media:ID)`**. HTML stores `[media=ID]`. Never paste CDN URLs into the body.
|
|
- Insert flow: pick a file → **Insert into body**. Cover: `cover_media_id`.
|
|
- Legacy: `` and `[attach=ID]` still resolve to `/attachment.php?id=`.
|
|
- Details: `docs/media.md`.
|