- Created ExampleTest and RoutesTest for basic application response and route testing. - Implemented IsolatedDatabaseTestCase for isolated database testing. - Added unit tests for various models and services including Contract, CPE, and LeadDetail. - Developed request validation tests for CreateClientRequest, UpdateClientRequest, and ContractRequest. - Introduced Vite configuration for asset management in the Laravel application.
18 lines
371 B
PHP
18 lines
371 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\AdminService;
|
|
|
|
class AdminController extends Controller
|
|
{
|
|
public function main(AdminService $admin) {
|
|
return view('web.admin.system', $admin->info());
|
|
}
|
|
|
|
public function phpInfo(AdminService $admin)
|
|
{
|
|
return response($admin->phpInfo())->header('Content-Type', 'text/html');
|
|
}
|
|
}
|