Prequel
v1.23.13
Prequel 旨在成为 Laravel 的数据库管理工具,以取代对 phpMyAdmin、Sequel Pro 或 MySQL Workbench 等单独的独立数据库工具的需求。凭借其(希望如此)清晰简洁的用户界面,Prequel 将成为一款现代且轻量级的数据库浏览器/工具,为未来的网络做好准备。 Prequel 的设计有意基于 Laravel Telescope 的设计,因为当今的(网络)开发人员已经有足够的东西需要学习和掌握,所以让我们互相帮助,并确保不要在庞大的知识堆中添加任何几乎无用的内容。
清晰简洁的数据库管理
您可以通过贡献代码或使用下面的按钮进行捐赠来提供帮助!两者都受到高度赞赏,并为保持开源免费和可持续发展做出了直接贡献!
$ composer require protoqol/prequel
$ php artisan prequel:install
/prequel
以查看 Prequel 的运行情况! $ php artisan prequel:update
您可能已经注意到,发布配置文件时出现在config/prequel.php
下。该配置文件看起来像这样。
请注意,您可以在 .env 文件中定义
PREQUEL_ENABLED
。
<?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) AppModelsUserModel
| (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', ProtoqolPrequelHttpMiddlewareAuthorised::class
|
*/
' middleware ' => [
Protoqol Prequel Http Middleware Authorised::class,
],
];
清晰简洁的数据库管理
请参阅贡献来了解如何为前传做出贡献!
前传根据 MIT 许可证获得许可。请参阅许可证文件以获取更多信息。