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

Commit 0238d8d

Browse files
author
Quinten
authored
🚀[RELEASE] Prequel v1.22
[RELEASE] Prequel v1.22
2 parents 5bc56e1 + 4973303 commit 0238d8d

File tree

94 files changed

+7324
-2386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+7324
-2386
lines changed

.github/README.md

+137-72
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ $ php artisan prequel:install
4444
###### When installation and publishing is done navigate to `/prequel` in your browser to see Prequel in action!
4545

4646
## Updating
47-
###### To update you can use the command specified below.
47+
```bash
48+
composer require protoqol/prequel:v1.2
49+
```
50+
51+
#### When using Prequel 1.2 and up you can try and use the auto updater!
52+
#####And else to update you can use the command specified below.
4853
```bash
4954
$ php artisan prequel:update
5055
```
@@ -56,76 +61,135 @@ You might have noticed that, while publishing a config file appeared under `conf
5661
That configuration file looks something like this.
5762
> Note that you can define `PREQUEL_ENABLED` in your .env file.
5863
```php
59-
[
60-
61-
/*
62-
|--------------------------------------------------------------------------
63-
| Prequel Master Switch : boolean
64-
|--------------------------------------------------------------------------
65-
|
66-
| Manually disable/enable Prequel, if in production Prequel will always
67-
| be disabled. Reason being that nobody should ever be able to directly look
68-
| inside your database besides you or your dev team (obviously).
69-
|
70-
*/
71-
'enabled' => env('PREQUEL_ENABLED', true),
72-
73-
/*
74-
|--------------------------------------------------------------------------
75-
| Prequel Path : string
76-
|--------------------------------------------------------------------------
77-
|
78-
| The path where Prequel will be residing. Note that this does not affect
79-
| Prequel API routes.
80-
|
81-
*/
82-
'path' => 'prequel',
83-
84-
/*
85-
|--------------------------------------------------------------------------
86-
| Prequel Database Configuration : array
87-
|--------------------------------------------------------------------------
88-
|
89-
| This enables you to fully configure your database-connection for Prequel.
90-
|
91-
*/
92-
'database' => [
93-
'connection' => env('DB_CONNECTION', 'mysql'),
94-
'host' => env('DB_HOST', '127.0.0.1'),
95-
'port' => env('DB_PORT', '3306'),
96-
'database' => env('DB_DATABASE', 'homestead'),
97-
'username' => env('DB_USERNAME', 'homestead'),
98-
'password' => env('DB_PASSWORD', 'secret'),
99-
],
100-
101-
/*
102-
|--------------------------------------------------------------------------
103-
| Prequel ignored databases and tables : array
104-
|--------------------------------------------------------------------------
105-
| Databases and tables that will be ignored during database discovery.
106-
|
107-
| Using 'mysql' => ['*'] ignores the entire mysql database.
108-
| Using 'mysql' => ['foo'] ignores only the mysql.foo table.
109-
*/
110-
'ignored' => [
111-
// 'information_schema' => ['*'],
112-
// 'sys' => ['*'],
113-
// 'performance_schema' => ['*'],
114-
// 'mysql' => ['*'],
115-
'#mysql50#lost+found' => ['*'],
116-
],
117-
118-
/*
119-
|--------------------------------------------------------------------------
120-
| Prequel pagination per page : integer
121-
|--------------------------------------------------------------------------
122-
|
123-
| When Prequel retrieves paginated information, this is the number of
124-
| records that will be in each page.
125-
|
126-
*/
127-
'pagination' => 100,
64+
<?php
12865

66+
[
67+
68+
/*
69+
|--------------------------------------------------------------------------
70+
| Prequel Master Switch : boolean
71+
|--------------------------------------------------------------------------
72+
|
73+
| Manually disable/enable Prequel, if in production Prequel will always be
74+
| disabled. Reason being that nobody should ever be able to directly look
75+
| inside your database besides you or your dev team (obviously).
76+
|
77+
*/
78+
79+
'enabled' => env('PREQUEL_ENABLED', true),
80+
81+
82+
/*
83+
|--------------------------------------------------------------------------
84+
| Prequel Locale : string
85+
|--------------------------------------------------------------------------
86+
|
87+
| Choose what language Prequel should display in.
88+
|
89+
*/
90+
91+
'locale' => env('APP_LOCALE', 'en'),
92+
93+
94+
/*
95+
|--------------------------------------------------------------------------
96+
| Prequel Path
97+
|--------------------------------------------------------------------------
98+
|
99+
| The path where Prequel will be residing. Note that this does not affect
100+
| Prequel API routes.
101+
|
102+
*/
103+
104+
'path' => 'prequel',
105+
106+
107+
/*
108+
|--------------------------------------------------------------------------
109+
| Laravel asset generation suffix and namespace definition
110+
|--------------------------------------------------------------------------
111+
|
112+
| Here you can define your preferred asset suffixes and directory/namespaces.
113+
| Separate with a double backwards slash to define namespace and directory
114+
| location. Everything after the last '\\' will be treated as a suffix.
115+
| Note that the backslash needs to be escaped with an extra backslash
116+
|
117+
| For example
118+
|
119+
| Configuration
120+
| 'suffixes' => [
121+
| 'model' => 'Models\\Model',
122+
| 'seeder' => 'MyMadeUpSeederSuffix'
123+
| ]
124+
|
125+
| When generating for `users` table
126+
| (directory) app/models/UserModel.php
127+
| (qualified class) App\Models\UserModel
128+
| (directory) database/seeds/UserMyMadeUpSeederSuffix.php
129+
|
130+
*/
131+
132+
'suffixes' => [
133+
'model' => 'Models\\',
134+
'seeder' => 'Seeder',
135+
'factory' => 'Factory',
136+
'controller' => 'Controller',
137+
'resource' => 'Resource',
138+
],
139+
140+
141+
/*
142+
|--------------------------------------------------------------------------
143+
| Prequel Database Configuration : array
144+
|--------------------------------------------------------------------------
145+
|
146+
| This enables you to fully configure your database connection for Prequel.
147+
|
148+
*/
149+
150+
'database' => [
151+
'connection' => env('DB_CONNECTION', 'mysql'),
152+
'host' => env('DB_HOST', '127.0.0.1'),
153+
'port' => env('DB_PORT', '3306'),
154+
'database' => env('DB_DATABASE', 'homestead'),
155+
'username' => env('DB_USERNAME', 'homestead'),
156+
'password' => env('DB_PASSWORD', 'secret'),
157+
],
158+
159+
160+
/*
161+
|--------------------------------------------------------------------------
162+
| Prequel ignored databases and tables : array
163+
|--------------------------------------------------------------------------
164+
| Databases and tables that will be ignored during database discovery.
165+
|
166+
| Using 'mysql' => ['foo'] ignores only the mysql.foo table.
167+
| Using 'mysql' => ['*'] ignores the entire mysql database.
168+
|
169+
*/
170+
171+
'ignored' => [
172+
// 'information_schema' => ['*'],
173+
// 'sys' => ['*'],
174+
// 'performance_schema' => ['*'],
175+
// 'mysql' => ['*'],
176+
'#mysql50#lost+found' => ['*'],
177+
],
178+
179+
180+
/*
181+
|--------------------------------------------------------------------------
182+
| Prequel pagination per page : integer
183+
|--------------------------------------------------------------------------
184+
|
185+
| When Prequel retrieves paginated information, this is the number of
186+
| records that will be in each page.
187+
|
188+
*/
189+
190+
'pagination' => 100,
191+
192+
129193
/*
130194
|--------------------------------------------------------------------------
131195
| Prequel middleware : array
@@ -136,11 +200,12 @@ That configuration file looks something like this.
136200
| Ex. 'web', Protoqol\Prequel\Http\Middleware\Authorised::class
137201
|
138202
*/
139-
203+
140204
'middleware' => [
141205
Protoqol\Prequel\Http\Middleware\Authorised::class,
142206
],
143-
];
207+
];
208+
144209
```
145210

146211
![Prequel Screenshot](./assets/prequel_screenshot.png)

.github/assets/prequel_v1.png

99.2 KB
Loading

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ mix-manifest.json
1212
todo.md
1313
/public/phpmd.html
1414
phpunit-watcher.yml
15+
webpack.mix.js

CHANGELOG.md

+48-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
1-
## Prequel 1.11.11-beta
1+
## Latest stable version: Prequel v1.22
2+
3+
### Prequel v1.22
4+
5+
##### Definitive for next release
6+
- Import
7+
- Export
8+
- Log
9+
- Settings
10+
- Maintenance
11+
12+
### Refactored
13+
- [REFACTOR] Code structure is now better organised
14+
15+
### Functionality
16+
- [FEATURE] PostgresSQL support
17+
- [FEATURE] i18n, Prequel is now multilingual!
18+
- [FEATURE] Management-mode (5)
19+
- Insert row
20+
- Laravel specific actions (generating assets)
21+
- View structure
22+
- Write and run raw SQL within the Monaco Editor (same as the vscode editor)
23+
- Monaco editor for writing queries
24+
- [FEATURE] Define your own suffix and namespace/directory when generating assets with the Laravel actions in config
25+
- [FEATURE] Auto updater for Prequel
26+
27+
### Fixed
28+
- [FIX] Assets
29+
- [FIX] Custom path not working when multiple were selected
30+
- [FIX] $visible model properties were not returning
31+
- [FIX] Style fixes
32+
33+
___
34+
35+
### Prequel v1.13 - Out of beta
36+
37+
### Functionality
38+
- [FEATURE] Defining your own middleware for Prequel in config
39+
- [FEATURE] Partial PGSQL Support
40+
41+
###### Fixes and refactors were omitted
42+
___
43+
44+
### Prequel v1.11.11-beta
245

346
##### Definitive for next release
447
- Add support for postgres.
@@ -36,3 +79,7 @@
3679

3780
### Readme
3881
- [README] Added config docs to readme, fixing issue #28.
82+
83+
___
84+
85+
Start of changelog

composer.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"minimum-stability": "beta",
12+
"minimum-stability": "stable",
1313
"require": {
14-
"php": "^7.2",
15-
"laravel/framework": "^5.6"
14+
"php": "^7.1",
15+
"composer/composer": "dev-master",
16+
"laravel/framework": "^5.6",
17+
"ext-pdo": "*",
18+
"ext-curl": "*",
19+
"ext-json": "*"
1620
},
1721
"extra": {
1822
"laravel": {

0 commit comments

Comments
 (0)