awaistech/larpack
Composer 安装命令:
composer require awaistech/larpack
包简介
AwaisAdmin is a powerful and easy-to-use Laravel package that provides a fully functional admin panel for managing blogs, SEO settings, and contact messages. It is designed to streamline content management while offering essential SEO tools and an intuitive contact message system.
README 文档
README
🚀 Introduction
Larpack is a Laravel package developed by Awais that provides a full-featured admin panel, authentication system, and middleware support for managing users, permissions, and system settings efficiently.
🛠️ Features
- 🏗️ Pre-built Admin Panel with authentication and role-based access control.
- 🗂️ Middleware Support for authentication, maintenance mode, and redirection.
- 📜 Route Management for web, admin, and superadmin sections.
- 🛠️ Configurable Settings with an easy-to-merge configuration file.
- 📑 View & Migration Loading for seamless integration.
📥 Installation
You can install Larpack via Composer:
composer require awaistech/larpack
Once installed, publish the package assets:
php artisan vendor:publish --tag=larpack-config php artisan vendor:publish --tag=larpack-views php artisan vendor:publish --tag=larpack-migrations
Run the migrations:
php artisan migrate
⚙️ Configuration
1️⃣ Register the Service Provider (If Not Auto-Discovered)
For Laravel versions below 5.5, add the service provider manually in config/app.php:
'providers' => [ Awaistech\Larpack\PackageServiceProvider::class, ],
2️⃣ Middleware Setup
Larpack provides custom middleware for authentication and role management. You can register them in app/Http/Kernel.php:
protected $routeMiddleware = [ 'authchheck' => \Awaistech\Larpack\Middleware\AuthChheck::class, 'check.maintenance' => \Awaistech\Larpack\Middleware\CheckMaintenanceMode::class, 'redirect.if.login' => \Awaistech\Larpack\Middleware\RedirectIfLogin::class, 'super.admin' => \Awaistech\Larpack\Middleware\SuperAdmin::class, ];
🛠 Usage
1️⃣ Routing
The package registers the following routes automatically:
/admin→ Admin Panel/superadmin→ Super Admin Dashboard/login→ Authentication Page
To view all registered routes, run:
php artisan route:list
2️⃣ Blade Views
Views are loaded from the package. You can override them by copying files to:
resources/views/vendor/larpack/
3️⃣ Configurations
Modify the configuration file config/larpack.php as needed.
📦 Publishing Resources
To publish specific resources:
php artisan vendor:publish --tag=larpack-config php artisan vendor:publish --tag=larpack-views php artisan vendor:publish --tag=larpack-migrations
To publish everything:
php artisan vendor:publish --provider="Awaistech\Larpack\PackageServiceProvider"
🛑 Uninstalling
If you need to remove Larpack, follow these steps:
composer remove awaistech/larpack
Delete any published configuration and migration files manually:
rm -rf config/larpack.php
rm -rf database/migrations/*_create_larpack_tables.php
rm -rf resources/views/vendor/larpack
📜 License
This package is open-sourced software licensed under the MIT License.
🤝 Contributing
We welcome contributions! Please follow these steps:
- Fork this repository.
- Clone your fork:
git clone https://github.com/your-username/larpack.git
- Create a new branch for your feature:
git checkout -b feature-name
- Commit changes and push:
git add . git commit -m "Added new feature" git push origin feature-name
- Create a Pull Request.
📞 Support
If you encounter any issues, please open an issue on GitHub or contact us:
- 📧 Email: support@yourdomain.com
- 📝 GitHub Issues: Report an issue
🚀 Enjoy using Larpack, developed by Awais, for your Laravel applications! 🚀
awaistech/larpack 适用场景与选型建议
awaistech/larpack 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 awaistech/larpack 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 awaistech/larpack 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-06