- 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.
17 lines
287 B
PHP
17 lines
287 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\HomeService;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function __construct(private HomeService $dashboard)
|
|
{
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
return view('home', $this->dashboard->index());
|
|
}
|
|
} |