create tables
This commit is contained in:
parent
9406f4c0d8
commit
9d3e4cb577
0
app/Domains/Flow/.gitkeep
Normal file
0
app/Domains/Flow/.gitkeep
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateFlowTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
33
app/Domains/Flow/Providers/FlowServiceProvider.php
Normal file
33
app/Domains/Flow/Providers/FlowServiceProvider.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace App\Domains\Flow\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\Domains\Flow\Providers\RouteServiceProvider;
|
||||
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
|
||||
|
||||
class FlowServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* 引导启动任何应用程序服务
|
||||
*
|
||||
* php artisan make:migration --path=app/Domains/Flow/Database/migrations
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
|
||||
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
|
||||
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.flow');
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册一个服务提供者
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
}
|
||||
}
|
20
app/Domains/Flow/Providers/RouteServiceProvider.php
Normal file
20
app/Domains/Flow/Providers/RouteServiceProvider.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Domains\Flow\Providers;
|
||||
|
||||
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Read the routes from the "api.php" and "web.php" files of this Domain
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$app = $this->app;
|
||||
$namespace = 'App\Domains\Flow\Http\Controllers';
|
||||
$pathApi = __DIR__.'/../Routes/api.php';
|
||||
$pathWeb = __DIR__.'/../Routes/web.php';
|
||||
|
||||
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
|
||||
}
|
||||
}
|
15
app/Domains/Flow/Routes/api.php
Normal file
15
app/Domains/Flow/Routes/api.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Prefix: /api/flows
|
||||
$router->group(['prefix' => 'flows', 'as' => 'flows'], function($router) {
|
||||
|
||||
// The controllers live in Domains/Flow/Http/Controllers
|
||||
$router->get('/', ['as' => 'index', 'uses' => 'FlowController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['adminAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'FlowController@delete']);
|
||||
// });
|
||||
});
|
14
app/Domains/Flow/Routes/web.php
Normal file
14
app/Domains/Flow/Routes/web.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$router->group(['prefix' => 'flows', 'as' => 'flows'], function($router) {
|
||||
|
||||
// The controllers live in Domains/Flow/Http/Controllers
|
||||
// $router->get('/', ['as' => 'index', 'uses' => 'FlowController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['userAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'FlowController@delete']);
|
||||
// });
|
||||
});
|
11
app/Domains/Flow/composer.json
Normal file
11
app/Domains/Flow/composer.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "app/flow",
|
||||
"description": "",
|
||||
"type": "app-domain",
|
||||
"require": {
|
||||
|
||||
},
|
||||
"autoload": {
|
||||
|
||||
}
|
||||
}
|
0
app/Domains/True/.gitkeep
Normal file
0
app/Domains/True/.gitkeep
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateTrueTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
20
app/Domains/True/Providers/RouteServiceProvider.php
Normal file
20
app/Domains/True/Providers/RouteServiceProvider.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Domains\True\Providers;
|
||||
|
||||
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Read the routes from the "api.php" and "web.php" files of this Domain
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$app = $this->app;
|
||||
$namespace = 'App\Domains\True\Http\Controllers';
|
||||
$pathApi = __DIR__.'/../Routes/api.php';
|
||||
$pathWeb = __DIR__.'/../Routes/web.php';
|
||||
|
||||
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
|
||||
}
|
||||
}
|
33
app/Domains/True/Providers/TrueServiceProvider.php
Normal file
33
app/Domains/True/Providers/TrueServiceProvider.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace App\Domains\True\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\Domains\True\Providers\RouteServiceProvider;
|
||||
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
|
||||
|
||||
class TrueServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* 引导启动任何应用程序服务
|
||||
*
|
||||
* php artisan make:migration --path=app/Domains/True/Database/migrations
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
|
||||
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
|
||||
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.true');
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册一个服务提供者
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
}
|
||||
}
|
15
app/Domains/True/Routes/api.php
Normal file
15
app/Domains/True/Routes/api.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Prefix: /api/trues
|
||||
$router->group(['prefix' => 'trues', 'as' => 'trues'], function($router) {
|
||||
|
||||
// The controllers live in Domains/True/Http/Controllers
|
||||
$router->get('/', ['as' => 'index', 'uses' => 'TrueController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['adminAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'TrueController@delete']);
|
||||
// });
|
||||
});
|
14
app/Domains/True/Routes/web.php
Normal file
14
app/Domains/True/Routes/web.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$router->group(['prefix' => 'trues', 'as' => 'trues'], function($router) {
|
||||
|
||||
// The controllers live in Domains/True/Http/Controllers
|
||||
// $router->get('/', ['as' => 'index', 'uses' => 'TrueController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['userAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'TrueController@delete']);
|
||||
// });
|
||||
});
|
11
app/Domains/True/composer.json
Normal file
11
app/Domains/True/composer.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "app/true",
|
||||
"description": "",
|
||||
"type": "app-domain",
|
||||
"require": {
|
||||
|
||||
},
|
||||
"autoload": {
|
||||
|
||||
}
|
||||
}
|
0
app/Domains/Virtual/.gitkeep
Normal file
0
app/Domains/Virtual/.gitkeep
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateVirtualTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
20
app/Domains/Virtual/Providers/RouteServiceProvider.php
Normal file
20
app/Domains/Virtual/Providers/RouteServiceProvider.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Domains\Virtual\Providers;
|
||||
|
||||
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Read the routes from the "api.php" and "web.php" files of this Domain
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$app = $this->app;
|
||||
$namespace = 'App\Domains\Virtual\Http\Controllers';
|
||||
$pathApi = __DIR__.'/../Routes/api.php';
|
||||
$pathWeb = __DIR__.'/../Routes/web.php';
|
||||
|
||||
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
|
||||
}
|
||||
}
|
33
app/Domains/Virtual/Providers/VirtualServiceProvider.php
Normal file
33
app/Domains/Virtual/Providers/VirtualServiceProvider.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace App\Domains\Virtual\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\Domains\Virtual\Providers\RouteServiceProvider;
|
||||
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
|
||||
|
||||
class VirtualServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* 引导启动任何应用程序服务
|
||||
*
|
||||
* php artisan make:migration --path=app/Domains/Virtual/Database/migrations
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
|
||||
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
|
||||
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.virtual');
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册一个服务提供者
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
}
|
||||
}
|
15
app/Domains/Virtual/Routes/api.php
Normal file
15
app/Domains/Virtual/Routes/api.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
// Prefix: /api/virtuals
|
||||
$router->group(['prefix' => 'virtuals', 'as' => 'virtuals'], function($router) {
|
||||
|
||||
// The controllers live in Domains/Virtual/Http/Controllers
|
||||
$router->get('/', ['as' => 'index', 'uses' => 'VirtualController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['adminAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'VirtualController@delete']);
|
||||
// });
|
||||
});
|
14
app/Domains/Virtual/Routes/web.php
Normal file
14
app/Domains/Virtual/Routes/web.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$router->group(['prefix' => 'virtuals', 'as' => 'virtuals'], function($router) {
|
||||
|
||||
// The controllers live in Domains/Virtual/Http/Controllers
|
||||
// $router->get('/', ['as' => 'index', 'uses' => 'VirtualController@index']);
|
||||
|
||||
/**
|
||||
* 需要认证的接口
|
||||
*/
|
||||
// $router->group(['middleware' => ['userAuth']], function($router) {
|
||||
// // $router->post('delete', ['as' => 'delete', 'uses' => 'VirtualController@delete']);
|
||||
// });
|
||||
});
|
11
app/Domains/Virtual/composer.json
Normal file
11
app/Domains/Virtual/composer.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "app/virtual",
|
||||
"description": "",
|
||||
"type": "app-domain",
|
||||
"require": {
|
||||
|
||||
},
|
||||
"autoload": {
|
||||
|
||||
}
|
||||
}
|
@ -10,7 +10,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="less" scoped>
|
||||
@import '~css/home';
|
||||
</style>
|
||||
|
2
public/css/chunk-164bab70.165b275d.css
Normal file
2
public/css/chunk-164bab70.165b275d.css
Normal file
File diff suppressed because one or more lines are too long
2
public/css/chunk-7c13b8ae.71ea92f6.css
Normal file
2
public/css/chunk-7c13b8ae.71ea92f6.css
Normal file
File diff suppressed because one or more lines are too long
2
public/js/app.4035cd94.js
Normal file
2
public/js/app.4035cd94.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/app.4035cd94.js.map
Normal file
1
public/js/app.4035cd94.js.map
Normal file
File diff suppressed because one or more lines are too long
2
public/js/app.9027a90d.js
Normal file
2
public/js/app.9027a90d.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/app.9027a90d.js.map
Normal file
1
public/js/app.9027a90d.js.map
Normal file
File diff suppressed because one or more lines are too long
2
public/js/chunk-164bab70.b975b1fb.js
Normal file
2
public/js/chunk-164bab70.b975b1fb.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/chunk-164bab70.b975b1fb.js.map
Normal file
1
public/js/chunk-164bab70.b975b1fb.js.map
Normal file
File diff suppressed because one or more lines are too long
2
public/js/chunk-7c13b8ae.ac08c04e.js
Normal file
2
public/js/chunk-7c13b8ae.ac08c04e.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/chunk-7c13b8ae.ac08c04e.js.map
Normal file
1
public/js/chunk-7c13b8ae.ac08c04e.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-d3bfffc8.0c922e7a.css rel=prefetch><link href=/js/chunk-abcdb748.eb20fb6e.js rel=prefetch><link href=/js/chunk-d3bfffc8.9235d061.js rel=prefetch><link href=/css/app.36043160.css rel=preload as=style><link href=/css/chunk-vendors.5803e894.css rel=preload as=style><link href=/js/app.6f2d58e2.js rel=preload as=script><link href=/js/chunk-vendors.0507d74c.js rel=preload as=script><link href=/css/chunk-vendors.5803e894.css rel=stylesheet><link href=/css/app.36043160.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0507d74c.js></script><script src=/js/app.6f2d58e2.js></script></body></html>
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-164bab70.165b275d.css rel=prefetch><link href=/js/chunk-164bab70.b975b1fb.js rel=prefetch><link href=/js/chunk-abcdb748.eb20fb6e.js rel=prefetch><link href=/css/app.36043160.css rel=preload as=style><link href=/css/chunk-vendors.5803e894.css rel=preload as=style><link href=/js/app.9027a90d.js rel=preload as=script><link href=/js/chunk-vendors.0507d74c.js rel=preload as=script><link href=/css/chunk-vendors.5803e894.css rel=stylesheet><link href=/css/app.36043160.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0507d74c.js></script><script src=/js/app.9027a90d.js></script></body></html>
|
@ -1,3 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once realpath(dirname(__FILE__) . '/TestCase.php');
|
||||
require_once realpath(dirname(__FILE__) . '/TestCase.php');
|
||||
|
||||
$res = \DB::connection('mongo')->table('tblCard')->find('1440059652572');
|
||||
|
||||
dd($res);
|
Loading…
x
Reference in New Issue
Block a user