code format
This commit is contained in:
parent
19dd2f75d8
commit
804fb97ac7
|
|
@ -2,11 +2,12 @@
|
||||||
|
|
||||||
namespace Beike\Installer\Controllers;
|
namespace Beike\Installer\Controllers;
|
||||||
|
|
||||||
use Beike\Admin\Repositories\AdminUserRepo;
|
|
||||||
use Illuminate\Routing\Controller;
|
use Illuminate\Routing\Controller;
|
||||||
use Beike\Installer\Helpers\DatabaseManager;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Beike\Admin\Repositories\AdminUserRepo;
|
||||||
|
use Beike\Installer\Helpers\DatabaseManager;
|
||||||
|
|
||||||
class DatabaseController extends Controller
|
class DatabaseController extends Controller
|
||||||
{
|
{
|
||||||
|
|
@ -26,7 +27,7 @@ class DatabaseController extends Controller
|
||||||
/**
|
/**
|
||||||
* Migrate and seed the database.
|
* Migrate and seed the database.
|
||||||
*
|
*
|
||||||
* @return \Illuminate\View\View
|
* @return RedirectResponse
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
|
|
@ -50,7 +51,6 @@ class DatabaseController extends Controller
|
||||||
];
|
];
|
||||||
AdminUserRepo::createAdminUser($data);
|
AdminUserRepo::createAdminUser($data);
|
||||||
|
|
||||||
return redirect()->route('installer.final')
|
return redirect()->route('installer.final')->with(['message' => $response]);
|
||||||
->with(['message' => $response]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue