Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
🚀[RELEASE] Prequel v1.22
Browse files Browse the repository at this point in the history
[RELEASE] Prequel v1.22
  • Loading branch information
Quinten authored Sep 8, 2019
2 parents 5bc56e1 + 4973303 commit 0238d8d
Show file tree
Hide file tree
Showing 94 changed files with 7,324 additions and 2,386 deletions.
209 changes: 137 additions & 72 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ $ php artisan prequel:install
###### When installation and publishing is done navigate to `/prequel` in your browser to see Prequel in action!

## Updating
###### To update you can use the command specified below.
```bash
composer require protoqol/prequel:v1.2
```

#### When using Prequel 1.2 and up you can try and use the auto updater!
#####And else to update you can use the command specified below.
```bash
$ php artisan prequel:update
```
Expand All @@ -56,76 +61,135 @@ You might have noticed that, while publishing a config file appeared under `conf
That configuration file looks something like this.
> Note that you can define `PREQUEL_ENABLED` in 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 Path : string
|--------------------------------------------------------------------------
|
| The path where Prequel will be residing. Note that this does not affect
| Prequel API routes.
|
*/
'path' => 'prequel',

/*
|--------------------------------------------------------------------------
| 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'),
],

/*
|--------------------------------------------------------------------------
| Prequel ignored databases and tables : array
|--------------------------------------------------------------------------
| Databases and tables that will be ignored during database discovery.
|
| Using 'mysql' => ['*'] ignores the entire mysql database.
| Using 'mysql' => ['foo'] ignores only the mysql.foo table.
*/
'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,
<?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',


/*
|--------------------------------------------------------------------------
| 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'),
],


/*
|--------------------------------------------------------------------------
| 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
Expand All @@ -136,11 +200,12 @@ That configuration file looks something like this.
| Ex. 'web', Protoqol\Prequel\Http\Middleware\Authorised::class
|
*/

'middleware' => [
Protoqol\Prequel\Http\Middleware\Authorised::class,
],
];
];

```

![Prequel Screenshot](./assets/prequel_screenshot.png)
Expand Down
Binary file modified .github/assets/prequel_v1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ mix-manifest.json
todo.md
/public/phpmd.html
phpunit-watcher.yml
webpack.mix.js
49 changes: 48 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
## Prequel 1.11.11-beta
## Latest stable version: Prequel v1.22

### Prequel v1.22

##### Definitive for next release
- Import
- Export
- Log
- Settings
- Maintenance

### Refactored
- [REFACTOR] Code structure is now better organised

### Functionality
- [FEATURE] PostgresSQL support
- [FEATURE] i18n, Prequel is now multilingual!
- [FEATURE] Management-mode (5)
- Insert row
- Laravel specific actions (generating assets)
- View structure
- Write and run raw SQL within the Monaco Editor (same as the vscode editor)
- Monaco editor for writing queries
- [FEATURE] Define your own suffix and namespace/directory when generating assets with the Laravel actions in config
- [FEATURE] Auto updater for Prequel

### Fixed
- [FIX] Assets
- [FIX] Custom path not working when multiple were selected
- [FIX] $visible model properties were not returning
- [FIX] Style fixes

___

### Prequel v1.13 - Out of beta

### Functionality
- [FEATURE] Defining your own middleware for Prequel in config
- [FEATURE] Partial PGSQL Support

###### Fixes and refactors were omitted
___

### Prequel v1.11.11-beta

##### Definitive for next release
- Add support for postgres.
Expand Down Expand Up @@ -36,3 +79,7 @@

### Readme
- [README] Added config docs to readme, fixing issue #28.

___

Start of changelog
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
"email": "quinten@protoqol.xyz"
}
],
"minimum-stability": "beta",
"minimum-stability": "stable",
"require": {
"php": "^7.2",
"laravel/framework": "^5.6"
"php": "^7.1",
"composer/composer": "dev-master",
"laravel/framework": "^5.6",
"ext-pdo": "*",
"ext-curl": "*",
"ext-json": "*"
},
"extra": {
"laravel": {
Expand Down
Loading

0 comments on commit 0238d8d

Please sign in to comment.