Laravel Prequel是一个用于Laravel项目的数据库管理工具,取代了对单独的独立数据库工具(如phpMyAdmin,Sequel Pro或MySQL Workbench)的需求。
Laravel Prequel凭借清晰简洁的UI,Prequel将成为一种现代、轻量级的数据库浏览器工具。
Laravel Prequel使用Laravel,Vue.js和TailwindCSS构建。
composer require protoqol/prequel
php artisan prequel:install
安装之后即可通过youdomain.com/prequel
访问。
升级
composer require protoqol/prequel:v1.2
如果你使用1.2及其以上的版本,你可以这样升级:
php artisan prequel:update
配置 config/prequel.php
<?php
[
'enabled' => env('PREQUEL_ENABLED', true),
'locale' => env('APP_LOCALE', 'en'),
'path' => 'prequel',
'suffixes' => [
'model' => 'Models\\',
'seeder' => 'Seeder',
'factory' => 'Factory',
'controller' => 'Controller',
'resource' => 'Resource',
],
'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'),
],
'ignored' => [
// 'information_schema' => ['*'],
// 'sys' => ['*'],
// 'performance_schema' => ['*'],
// 'mysql' => ['*'],
'#mysql50#lost+found' => ['*'],
],
'pagination' => 100,
'middleware' => [
Protoqol\Prequel\Http\Middleware\Authorised::class,
],
];
End