nsanden/laravel-inertia-react-blog
Composer 安装命令:
composer require nsanden/laravel-inertia-react-blog
包简介
An advanced blog package for Laravel with React/Inertia.js featuring markdown support, image search, and live preview
README 文档
README
An advanced blog package for Laravel with React/Inertia.js featuring comprehensive content management and modern editing capabilities.
Features
Content Management
- Advanced markdown editor with live preview
- Rich text formatting (bold, italic, headers, links, lists, code blocks, quotes)
- Split-screen editing with real-time preview
- Click-to-edit paragraph functionality
- Excerpt and featured image support
- Slug generation and editing
- Publish date/time scheduling
Image Management
- Unsplash API integration for high-quality stock images
- Search and insert images directly into content
- Featured image support with preview
- Image replacement functionality
- Auto-attribution for Unsplash images
Advanced UI/UX
- Beautiful, responsive design with modern styling
- Featured post display on blog index
- Grid layout for recent posts
- Social sharing buttons (Twitter, LinkedIn, Facebook)
- Breadcrumb navigation
- Draft/Published status indicators
- Admin edit buttons for authenticated users
Technical Features
- Comprehensive markdown rendering
- Advanced form validation and error handling
- Clean component architecture
- SEO-friendly URLs with slugs
- Author management with user linking
- Pagination support
Installation
Via Composer (from Packagist)
composer require nsanden/laravel-inertia-react-blog
Via GitHub (before Packagist submission)
Add to your project's composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/nsanden/laravel-inertia-react-blog"
}
],
"require": {
"nsanden/laravel-inertia-react-blog": "^1.0"
}
}
Then run:
composer install
Post-Installation
- Run migrations:
php artisan migrate
- Publish the React components (optional, for customization):
php artisan vendor:publish --tag=laravel-inertia-react-blog-assets
Usage
Routes
/blog- Public blog listing/blog/{slug}- Single blog post/admin/blog- Admin blog management (requires auth)
Requirements
- PHP ^8.1
- Laravel ^10.0
- React with Inertia.js
- User model with
isAdmin()method
Customization
The package publishes React components to resources/js/vendor/laravel-inertia-react-blog/ which you can customize as needed.
GitHub Setup
To publish this package to GitHub:
- Create a new repository:
https://github.com/nsanden/laravel-inertia-react-blog - Initialize git in the package directory
- Add, commit, and push the code
- Create a release tag (e.g.
v1.0.0) - Submit to Packagist for auto-discovery
Development
This version (2.0) represents a major upgrade from the minimal v1.0, adding all the advanced features mentioned above. Future enhancements could include:
- Categories/tags system
- Comment system
- Advanced SEO features
- Content caching
- Multi-language support
- Email newsletter integration
License
MIT License
nsanden/laravel-inertia-react-blog 适用场景与选型建议
nsanden/laravel-inertia-react-blog 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「blog」 「laravel」 「react」 「inertia」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nsanden/laravel-inertia-react-blog 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nsanden/laravel-inertia-react-blog 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nsanden/laravel-inertia-react-blog 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel package for opinionated blog implementation
Import an RSS-feed into blog
Simple ASCII output of array data
Faker provider for NumberNine CMS
A blog module for AsgardCMS.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-16