Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
baf65f5
Apply Laravel coding style
laravel-shift Jul 15, 2024
2f19eb1
Use Faker methods
laravel-shift Jul 15, 2024
4a68780
Adopt class based routes
laravel-shift Jul 15, 2024
b9fa1c1
Move `resources/lang` folder
laravel-shift Jul 15, 2024
9c5aac5
Slim `lang` files
laravel-shift Jul 15, 2024
4a3f8ee
Remove default `app` files
laravel-shift Jul 15, 2024
b5c585c
Shift core files
laravel-shift Jul 15, 2024
6951680
Streamline config files
laravel-shift Jul 15, 2024
f8e5bef
Set new `ENV` variables
laravel-shift Jul 15, 2024
34953e4
Default new `bootstrap/app.php`
laravel-shift Jul 15, 2024
d622e43
Re-register HTTP middleware
laravel-shift Jul 15, 2024
3fbe598
Consolidate service providers
laravel-shift Jul 15, 2024
6565acf
Re-register service providers
laravel-shift Jul 15, 2024
818f672
Re-register routes
laravel-shift Jul 15, 2024
676e2d5
Remove unnecessary Console Kernel
laravel-shift Jul 15, 2024
4b958a5
Bump Composer dependencies
laravel-shift Jul 15, 2024
26f5aa4
Prepare test suite for PHPUnit 10
laravel-shift Jul 15, 2024
4c235b0
Adopt Laravel type hints
laravel-shift Jul 15, 2024
24558ce
Mark base controller as `abstract`
laravel-shift Jul 15, 2024
aefe5b7
Remove `CreatesApplication` testing trait
laravel-shift Jul 15, 2024
a418b68
Shift cleanup
laravel-shift Jul 15, 2024
c74a126
Update composer.json to bump PHP version to 8.3
thekevinm Jul 15, 2024
edba5aa
Update composer.json
thekevinm Jul 16, 2024
84ef233
Update composer.json
thekevinm Jul 16, 2024
0bfc3ba
Update composer.json
thekevinm Jul 16, 2024
6a3b845
Update composer.json
thekevinm Jul 16, 2024
f9d75bc
Update composer.json
thekevinm Jul 16, 2024
b48382b
Update composer.json
thekevinm Jul 16, 2024
150725c
Update composer.json
thekevinm Jul 16, 2024
3f1f1bc
Update composer.json
thekevinm Jul 16, 2024
0833c14
Update composer.json
thekevinm Jul 16, 2024
9a70903
Update composer.json
thekevinm Jul 16, 2024
ed26dd3
Update composer.json
thekevinm Jul 16, 2024
d7f748c
Update composer.json
thekevinm Jul 16, 2024
52e6a14
Update composer.json
thekevinm Jul 16, 2024
a4758d0
Update composer.json
thekevinm Jul 16, 2024
6d052d7
Update composer.json
thekevinm Jul 16, 2024
4f79ccc
Update cache.php
thekevinm Jul 18, 2024
5896101
Update session.php
thekevinm Jul 18, 2024
3462eae
Update jwt.php
thekevinm Jul 18, 2024
283cbe8
updated csfr rules and setup pages
thekevinm Nov 1, 2024
38cc512
Merge branch 'shift-124321' of https://github.com/dreamfactorysoftwar…
thekevinm Nov 1, 2024
72f0df6
updated csfr rules and setup pages
thekevinm Nov 1, 2024
a64be32
csfr debug
thekevinm Nov 1, 2024
ea3a9b3
csfr and remove graphql
thekevinm Nov 1, 2024
00d373f
csfr update
thekevinm Nov 1, 2024
d353722
redirect issue
thekevinm Nov 2, 2024
9173ef4
login issue
thekevinm Nov 2, 2024
d9f538e
login issue
thekevinm Nov 2, 2024
b8bb5de
login issue
thekevinm Nov 2, 2024
0d312d8
updated migration logic
thekevinm Nov 15, 2024
3ef5db3
app Jenssegers update
thekevinm Nov 17, 2024
995db08
app Jenssegers update
thekevinm Nov 17, 2024
e2598a1
case sensitivity package name
thekevinm Nov 17, 2024
f445aa8
case sensitivity package name
thekevinm Nov 17, 2024
3323784
refactor ui deployment
thekevinm Nov 23, 2024
5b77782
add dreamfactory installer plugin for ui
thekevinm Nov 23, 2024
996a18c
add installer path to composer
thekevinm Nov 23, 2024
a2465dc
laravel upgrade
thekevinm Nov 25, 2024
ffe07ab
rebuilt composers
thekevinm Nov 25, 2024
52a8844
composer rebuild
thekevinm Nov 25, 2024
5d2f8f9
UI update
thekevinm Dec 7, 2024
69d3f28
rebuilt dist
thekevinm Dec 7, 2024
fb5e134
Update app.php
thekevinm Dec 16, 2024
3e993ae
Update app.php
thekevinm Dec 16, 2024
444e514
updated readme
thekevinm Dec 20, 2024
77db875
Merge branch 'shift-124321' of https://github.com/dreamfactorysoftwar…
thekevinm Dec 20, 2024
eea1a92
Update README.md
thekevinm Dec 23, 2024
417d245
changed AuthServiceProvider location
thekevinm Dec 27, 2024
fd11948
Merge branch 'shift-124321' of https://github.com/dreamfactorysoftwar…
thekevinm Dec 27, 2024
0ec71f3
changed AuthServiceProvider location
thekevinm Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .env-dist
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,25 @@ APP_KEY=
## Cache Settings
##------------------------------------------------------------------------------

## CACHE_DRIVER options: apc, array, database, file, memcached, redis
#CACHE_DRIVER=file
## CACHE_STORE options: apc, array, database, file, memcached, redis
#CACHE_STORE=file
## Cache TTL in seconds
#CACHE_DEFAULT_TTL=18000
## Prefix added to all caching from this installation
#CACHE_PREFIX=dreamfactory
## Database cache settings if CACHE_DRIVER = file
## Database cache settings if CACHE_STORE = file
#CACHE_PATH=storage/framework/cache/data
## Database cache settings if CACHE_DRIVER = database
## Database cache settings if CACHE_STORE = database
#CACHE_TABLE=cache
## If CACHE_DRIVER = memcached or redis
## If CACHE_STORE = memcached or redis
#CACHE_HOST=
#CACHE_PORT=
#CACHE_PASSWORD=
## If CACHE_DRIVER = memcached
## If CACHE_STORE = memcached
#CACHE_WEIGHT=
#CACHE_PERSISTENT_ID=
#CACHE_USERNAME=
## If CACHE_DRIVER = redis
## If CACHE_STORE = redis
#CACHE_DATABASE=2
## Which Redis client to use: predis or phpredis (PHP extension)
#REDIS_CLIENT=predis
Expand Down Expand Up @@ -159,12 +159,12 @@ APP_KEY=
##------------------------------------------------------------------------------

## Broadcast driver options: pusher, redis, log, null (default)
#BROADCAST_DRIVER=null
## If BROADCAST_DRIVER = pusher
#BROADCAST_CONNECTION=null
## If BROADCAST_CONNECTION = pusher
#PUSHER_APP_ID=
#PUSHER_APP_KEY=
#PUSHER_APP_SECRET=
## If BROADCAST_DRIVER = redis
## If BROADCAST_CONNECTION = redis
#BROADCAST_HOST=
#BROADCAST_PORT=6379
#BROADCAST_DATABASE=1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ composer.json.full_debug
composer.json-install-bkup
after.sh
.vscode

/.phpunit.cache
49 changes: 24 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
</h1>

<p align="center">
<strong>DevOps for Private APIs</strong>
<strong>Code Automation for Generating APIs</strong>
</p>

<p align="center">
<a href="http://guide.dreamfactory.com/">Getting Started Guide</a> ∙ <a href="https://genie.dreamfactory.com">Try Online</a> ∙ <a href="https://github.com/dreamfactorysoftware/dreamfactory/blob/master/CONTRIBUTING.md">Contribute</a> ∙ <a href="http://community.dreamfactory.com/">Community Support</a> ∙ <a href="https://wiki.dreamfactory.com">Docs</a>
<a href="http://guide.dreamfactory.com/">Getting Started Guide</a> ∙ <a href="https://dreamfactory.appsembler.com/embed/c75cd5dd-6354-453d-a03e-f3a5bbc05cfa/">Try Online</a> ∙ <a href="https://github.com/dreamfactorysoftware/dreamfactory/blob/master/CONTRIBUTING.md">Contribute</a> ∙ <a href="http://community.dreamfactory.com/">Community Support</a> ∙ <a href="https://docs.dreamfactory.com">Docs</a>
</p>

<p align="center">
Expand All @@ -21,17 +21,30 @@
</p>

<p align="center">
<a href="https://heroku.com/deploy?template=https://github.com/dreamfactorysoftware/dreamfactory">
<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy">
<a href="https://app.snowflake.com/marketplace/listing/GZTYZRSG47I/dreamfactory-software-dreamfactory-rest-api-generation">
<img src="https://github.com/dreamfactorysoftware/dreamfactory/blob/shift-124321/readme/deploy-to-snowflake.svg" alt="Deploy to Snowflake">
</a>
&nbsp;&nbsp;
<a href="https://marketplace.digitalocean.com/apps/dreamfactory?refcode=e62ab9df59c2&action=deploy">
<img src="https://www.deploytodo.com/do-btn-blue.svg" alt="Deploy to DO">
</a>
</p>

<p align="center">
<a href="https://github.com/dreamfactorysoftware/df-helm">
<img src="https://github.com/dreamfactorysoftware/dreamfactory/blob/shift-124321/readme/deploy-with-helm.svg" alt="Deploy with Helm">
</a>
&nbsp;&nbsp;
<a href="https://github.com/dreamfactorysoftware/df-docker">
<img src="https://github.com/dreamfactorysoftware/dreamfactory/blob/shift-124321/readme/deploy-with-docker.svg" alt="Deploy with Docker">
</a>
</p>

## Table of Contents

* <a href="#overview">Platform Overview</a>
* <a href="#installation">Installation Options</a>
* <a href="#heroku">Installing on Heroku</a>
* <a href="#hosted">DreamFactory's Cloud Environment</a>
* <a href="#hosted">DreamFactory's Cloud Playground</a>
* <a href="#documentation">Documentation</a>
* <a href="#community">Support Options</a>
* <a href="#commercial">Commercial Licenses</a>
Expand Down Expand Up @@ -60,25 +73,12 @@ https://github.com/dreamfactorysoftware/dreamfactory/assets/36458555/6d1569a8-07
* Our [Helm chart](https://github.com/dreamfactorysoftware/df-helm) provides a convenient way to install DreamFactory within your Kubernetes cluster.
* [Raspberry Pi](http://guide.dreamfactory.com/docs/raspberry-pi.html) allows you to configure DreamFactory on everybody's favorite tiny computer.


<a name="heroku"></a>

## Installing on Heroku

Heroku users can easily install DreamFactory by clicking on the below button. Keep in mind like many Heroku add-ons DreamFactory comes with some limitations such as the inability to deploy a local file system-based REST API due to Heroku's file system write limitations. Additionally, DreamFactory lacks support for multiple dynos. Regardless of these limitations, it's a breeze to get started using DreamFactory on Heroku so give it a whirl!

<p align="center">
<a href="https://heroku.com/deploy?template=https://github.com/dreamfactorysoftware/dreamfactory">
<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy">
</a>
</p>

<a href="#commercial">Contact us</a> for more information if you're interested in a feature complete version (whether hosted in our cloud environment or on-premise). Or just <a href="https://genie.dreamfactory.com/">spin up a playground instance</a> right now!
<a href="#commercial">Contact us</a> for more information if you're interested in a feature complete version (whether hosted in our cloud environment or on-premise). Or just <a href="https://dreamfactory.appsembler.com/embed/c75cd5dd-6354-453d-a03e-f3a5bbc05cfa/">spin up a playground instance</a> right now!

<a name="hosted"></a>
## DreamFactory's Cloud Playground

Start testing for free with our cloud playground now by creating a DreamFactory instance at <a href="https://genie.dreamfactory.com/">https://genie.dreamfactory.com/</a>.
Start testing for free with our cloud playground now by creating a DreamFactory instance <a href="https://genie.dreamfactory.com/">here</a>.

<a name="documentation"></a>
## Documentation
Expand All @@ -89,15 +89,14 @@ Additional platform documentation can be found on the [DreamFactory wiki](http:/
<a name="community"></a>
## Community

| <a href="https://stackoverflow.com/questions/tagged/dreamfactory"><img src="https://raw.githubusercontent.com/dreamfactorysoftware/dreamfactory/master/readme/stackoverflow.png" height="50px"/></a> | <a href="https://community.dreamfactory.com"><img src="https://raw.githubusercontent.com/dreamfactorysoftware/dreamfactory/dev-readme/readme/mark-gold.png" height="60px"/></a> | <a href="https://twitter.com/dfsoftwareinc"><img src="https://raw.githubusercontent.com/dreamfactorysoftware/dreamfactory/master/readme/twitter.png" height="40px"/></a> |
| <a href="https://stackoverflow.com/questions/tagged/dreamfactory"><img src="https://static-00.iconduck.com/assets.00/stack-overflow-icon-2048x2048-7ohycn5z.png" height="50px"/></a> | <a href="https://community.dreamfactory.com"><img src="https://raw.githubusercontent.com/dreamfactorysoftware/dreamfactory/master/readme/vertical-logo-fullcolor.png" height="60px"/></a> | <a href="https://twitter.com/dfsoftwareinc"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b7/X_logo.jpg/768px-X_logo.jpg" height="40px"/></a> |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ask and answer StackOverflow questions with the [`dreamfactory` tag](https://stackoverflow.com/questions/tagged/dreamfactory) | Check out our [community forum](https://community.dreamfactory.com), ask questions, and discuss project direction | Tweet to [`@dfsoftwareinc`](https://twitter.com/dfsoftwareinc) or with the [`#dreamfactory` hashtag](https://twitter.com/search?q=%23dreamfactory&f=live)
| Ask and answer StackOverflow questions with the [`dreamfactory` tag](https://stackoverflow.com/questions/tagged/dreamfactory) | Check out our [Docs](https://docs.dreamfactory.com), [Wiki](https://wiki.dreamfactory.com), and [Guide](https://guide.dreamfactory.com) for various examples and tutorials | Tweet to [`@dfsoftwareinc`](https://twitter.com/dfsoftwareinc) or with the [`#dreamfactory` hashtag](https://twitter.com/search?q=%23dreamfactory&f=live)

<a name="commercial"></a>
## Commercial Licenses

In need of official technical support? Desire access to REST API generators for SQL Server, Oracle, SOAP, or mobile
push notifications? Require API limiting and/or auditing? Schedule a demo [with our team](https://www.dreamfactory.com/demo/)!
In need of official technical support? Desire access to REST API wrappers for SQL Server, Oracle, SOAP, or Snowflake? Require API limiting and/or auditing? Looking to extend the capabilites of your existing APIs? Schedule a demo [with our team](https://www.dreamfactory.com/demo/)!

<a name="feedback"></a>
## Feedback and Contributions
Expand Down
42 changes: 0 additions & 42 deletions app/Console/Kernel.php

This file was deleted.

53 changes: 0 additions & 53 deletions app/Exceptions/Handler.php

This file was deleted.

2 changes: 0 additions & 2 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public function __construct()
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
Expand All @@ -58,7 +57,6 @@ protected function validator(array $data)
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return \DreamFactory\User
*/
protected function create(array $data)
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
59 changes: 36 additions & 23 deletions app/Http/Controllers/SplashController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@

use DreamFactory\Core\Enums\Verbs;
use DreamFactory\Core\Models\User;
use DreamFactory\Core\Utility\Session;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Arr;
use Response;

class SplashController extends Controller
{
/**
* Show the application splash screen to the user.
*
* @return Factory|View|Application
*/
public function index(): Factory|View|Application
public function index()
{
return view("index");
$token = \Request::input('session_token');
$param = '';
if (! empty($token)) {
$param = '?session_token='.$token;
}
return redirect(config('df.landing_page', '/test_rest.html').$param);
}

public function createFirstUser()
Expand All @@ -30,32 +30,45 @@ public function createFirstUser()
$method = $request->method();
$data = [
'username_placeholder' => 'Username (Optional, defaults to email address)',
'email_placeholder' => 'Email Address (Required for login)',
'email_placeholder' => 'Email Address (Required for login)',
];
$loginAttribute = strtolower(config('df.login_attribute', 'email'));
if ($loginAttribute === 'username') {
$data['username_placeholder'] = 'Username (Required for login)';
$data['email_placeholder'] = 'Email Address';
}

if (Verbs::GET === $method) {
if ($method === Verbs::GET) {
$data = array_merge([
'version' => \Config::get('app.version'),
'email' => '',
'name' => '',
'version' => \Config::get('app.version'),
'email' => '',
'name' => '',
'first_name' => '',
'last_name' => '',
'username' => '',
'errors' => [],
'phone' => '',
'last_name' => '',
'username' => '',
'errors' => [],
'phone' => '',
], $data);

return view('firstUser', $data);
} elseif (Verbs::POST === $method) {
$data = array_merge($request->all(), $data);
$user = User::createFirstAdmin($data);
} elseif ($method === Verbs::POST) {
try {
$data = array_merge($request->all(), $data);
$user = User::createFirstAdmin($data);

if (! $user) {
if (!$user) {
return view('firstUser', $data);
}

// Clear all caches
\Cache::flush();
\Artisan::call('config:clear');
\Artisan::call('route:clear');

return redirect()->to('/');
} catch (\Exception $e) {
\Log::error('Error creating first admin: ' . $e->getMessage());
$data['errors'] = [$e->getMessage()];
return view('firstUser', $data);
}
}
Expand All @@ -75,11 +88,11 @@ public function setupDb()
$request = \Request::instance();
$method = $request->method();

if (Verbs::GET === $method) {
if ($method === Verbs::GET) {
return view('setup', [
'version' => config('app.version'),
]);
} elseif (Verbs::POST === $method) {
} elseif ($method === Verbs::POST) {
try {
if (\Cache::pull('setup_db', false)) {
if (! file_exists(base_path('.env'))) {
Expand Down Expand Up @@ -113,7 +126,7 @@ public function setupDb()
return view(
'errors.generic',
[
'error' => $e->getMessage(),
'error' => $e->getMessage(),
'version' => config('app.version'),
]
);
Expand Down
Loading