Prekuel dimaksudkan sebagai alat manajemen basis data untuk Laravel untuk menggantikan kebutuhan akan alat basis data mandiri yang terpisah seperti phpMyAdmin, Sequel Pro, atau MySQL Workbench. Dengan UI yang (semoga) jelas dan ringkas, Prekuel akan menjadi browser/alat database modern dan ringan yang siap untuk web masa depan. Desain Prekuel sengaja didasarkan pada Laravel Telescope karena pengembang (web) saat ini sudah memiliki cukup banyak hal untuk dipelajari dan dikuasai, jadi mari kita saling membantu dan pastikan untuk tidak menambahkan apa pun yang sebenarnya tidak berguna ke dalam tumpukan pengetahuan yang sangat besar itu.
Manajemen basis data yang jelas dan ringkas
Anda dapat membantu dengan berkontribusi pada kode atau berdonasi menggunakan tombol di bawah! Keduanya sangat dihargai dan berkontribusi langsung untuk menjaga open source tetap bebas dan berkelanjutan!
$ composer require protoqol/prequel
$ php artisan prequel:install
/prequel
di browser Anda untuk melihat Prekuel beraksi! $ php artisan prequel:update
Anda mungkin telah memperhatikan bahwa, saat menerbitkan file konfigurasi muncul di bawah config/prequel.php
. File konfigurasinya terlihat seperti ini.
Perhatikan bahwa Anda dapat mendefinisikan
PREQUEL_ENABLED
di file .env Anda.
<?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,
],
];
Manajemen basis data yang jelas dan ringkas
Lihat Berkontribusi untuk melihat bagaimana Anda dapat berkontribusi pada Prekuel!
Prekuel dilisensikan di bawah Lisensi MIT. Silakan lihat File Lisensi untuk informasi lebih lanjut.