package installer

This commit is contained in:
tanch0
2024-06-11 12:16:24 +05:45
parent c569ea1d0c
commit 97f00e8172
88 changed files with 15037 additions and 3657 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace App\Http\Controllers\Installer;
use Illuminate\Routing\Controller;
use App\Helpers\Installer\DatabaseManager;
class DatabaseController extends Controller
{
/**
* @var DatabaseManager
*/
private $databaseManager;
/**
* @param DatabaseManager $databaseManager
*/
public function __construct(DatabaseManager $databaseManager)
{
$this->databaseManager = $databaseManager;
}
/**
* Migrate and seed the database.
*
* @return \Illuminate\View\View
*/
public function database()
{
$response = $this->databaseManager->migrateAndSeed();
return redirect()->route('LaravelInstaller::final')
->with(['message' => $response]);
}
}