protoqol/prequel
最新稳定版本:v1.23.13
Composer 安装命令:
composer require protoqol/prequel
包简介
Clear and concise database management.
README 文档
README
What is Prequel exactly?
Prequel is meant to be a database management tool for Laravel to replace the need for separate standalone database tools like phpMyAdmin, Sequel Pro or MySQL Workbench. With its (hopefully) clear and concise UI, Prequel is to be a modern and lightweight database browser/tool ready for the web of the future. Prequel's design is purposefully based on that of Laravel Telescope because (web-)developers today have enough to learn and master already, so let's help eachother out and make sure to not add anything virtually useless to that huge pile of knowledge.
Clear and concise database management
Want to help keep open-source sustainable?
You can help by contributing to the code or donating using the button below! Both are highly appreciated and contribute directly to keeping open-source free and sustainable!
Installation
To install follow the instructions below.
$ composer require protoqol/prequel $ php artisan prequel:install
When installation and publishing is done navigate to /prequel in your browser to see Prequel in action!
Updating
$ php artisan prequel:update
Issues, bugs and feature requests can be reported here!
Configuration
You might have noticed that, while publishing a config file appeared under config/prequel.php. That configuration file looks something like this.
Note that you can define
PREQUEL_ENABLEDin your .env file.
<?php [ /* |-------------------------------------------------------------------------- | Prequel Master Switch : boolean |-------------------------------------------------------------------------- | | Manually disable/enable Prequel, if in production Prequel will always be | disabled. Reason being that nobody should ever be able to directly look | inside your database besides you or your dev team (obviously). | */ 'enabled' => env('PREQUEL_ENABLED', true), /* |-------------------------------------------------------------------------- | Prequel Locale : string |-------------------------------------------------------------------------- | | Choose what language Prequel should display in. | */ 'locale' => env('APP_LOCALE', 'en'), /* |-------------------------------------------------------------------------- | Prequel Path |-------------------------------------------------------------------------- | | The path where Prequel will be residing. Note that this does not affect | Prequel API routes. | */ 'path' => 'prequel', /* |-------------------------------------------------------------------------- | Prequel base url |-------------------------------------------------------------------------- | | When present, this URL will be used instead of the default url. | This should be a complete url excluding tailing slash. | Example: 'https://protoqol.nl' | */ 'baseUrl' => null, /* |-------------------------------------------------------------------------- | Laravel asset generation suffix and namespace definition |-------------------------------------------------------------------------- | | Here you can define your preferred asset suffixes and directory/namespaces. | Separate with a double backwards slash to define namespace and directory | location. Everything after the last '\\' will be treated as a suffix. | Note that the backslash needs to be escaped with an extra backslash | | For example | | Configuration | 'suffixes' => [ | 'model' => 'Models\\Model', | 'seeder' => 'MyMadeUpSeederSuffix' | ] | | When generating for `users` table | (directory) app/models/UserModel.php | (qualified class) App\Models\UserModel | (directory) database/seeds/UserMyMadeUpSeederSuffix.php | */ 'suffixes' => [ 'model' => 'Models\\', 'seeder' => 'Seeder', 'factory' => 'Factory', 'controller' => 'Controller', 'resource' => 'Resource', ], /* |-------------------------------------------------------------------------- | Prequel Database Configuration : array |-------------------------------------------------------------------------- | | This enables you to fully configure your database connection for Prequel. | */ 'database' => [ 'connection' => env('DB_CONNECTION', 'mysql'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'homestead'), 'username' => env('DB_USERNAME', 'homestead'), 'password' => env('DB_PASSWORD', 'secret'), 'socket' => env('DB_SOCKET', ''), ], /* |-------------------------------------------------------------------------- | Prequel ignored databases and tables : array |-------------------------------------------------------------------------- | Databases and tables that will be ignored during database discovery. | | Using 'mysql' => ['foo'] ignores only the mysql.foo table. | Using 'mysql' => ['*'] ignores the entire mysql database. | */ 'ignored' => [ // 'information_schema' => ['*'], // 'sys' => ['*'], // 'performance_schema' => ['*'], // 'mysql' => ['*'], '#mysql50#lost+found' => ['*'], ], /* |-------------------------------------------------------------------------- | Prequel pagination per page : integer |-------------------------------------------------------------------------- | | When Prequel retrieves paginated information, this is the number of | records that will be in each page. | */ 'pagination' => 100, /* |-------------------------------------------------------------------------- | Prequel middleware : array |-------------------------------------------------------------------------- | | Define custom middleware for Prequel to use. | | Ex. 'web', Protoqol\Prequel\Http\Middleware\Authorised::class | */ 'middleware' => [ Protoqol\Prequel\Http\Middleware\Authorised::class, ], ];
Clear and concise database management
Contributing
See Contributing to see how you can contribute to Prequel!
Contributors
License
Prequel is licensed under the MIT License. Please see License File for more information.
protoqol/prequel 适用场景与选型建议
protoqol/prequel 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 167.58k 次下载、GitHub Stars 达 1.53k, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 protoqol/prequel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 protoqol/prequel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 167.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1537
- 点击次数: 13
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04


