laravelgpt/dhru
最新稳定版本:v1.0.1
Composer 安装命令:
composer require laravelgpt/dhru
包简介
DhruFusionApi Integration
README 文档
README
requires
composer require yajra/laravel-datatables-oracle
Install Command
composer require laravelgpt/dhru
Run the interactive installer
php artisan dhru:install
Follow the prompts to select your Laravel version and frontend stack (Blade, Livewire, React, Vue.js)
Security Checklist & Best Practices
- All sensitive routes are protected by authentication and authorization middleware.
- API and admin routes use Laravel's
throttlemiddleware for rate limiting. - Always validate and sanitize all user input (FormRequest and controller validation included).
- Use HTTPS in production and set secure cookie/session flags.
- Store all secrets and credentials in your
.envfile. - Rotate API keys and monitor logs for suspicious activity.
- Use Laravel Sanctum or Passport for advanced API authentication if needed.
- Keep dependencies up to date (PHP 8.2+, Laravel 10/11/12 supported).
Quick Start
- Install the package:
composer require laravelgpt/dhru
- Run the interactive installer:
php artisan dhru:install
- Select your Laravel version and frontend stack (Blade, Livewire, React, Vue.js, Inertia.js, API-only)
- Optionally publish config and run migrations
Dashboard Integration
Blade Example
// routes/web.php Route::middleware(['auth', 'role:admin'])->get('/admin/dashboard', fn() => view('dhru.admin-dashboard')); Route::middleware(['auth'])->get('/dashboard', fn() => view('dhru.user-dashboard'));
Livewire Example
- Use the published
admin-dashboard.blade.phpanduser-dashboard.blade.phpas Livewire components or views.
React/Vue/Inertia.js
- Import the provided dashboard components into your SPA entry points.
- Example (React):
import AdminDashboard from './resources/views/dhru/AdminDashboard'; import UserDashboard from './resources/views/dhru/UserDashboard';
Security & Best Practices
- All routes are protected by authentication and authorization middleware.
- Rate limiting is enabled by default.
- See
config/dhru.phpfor feature toggles and settings.
Contributors
- laravelgpt
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-02