diff --git a/app/Home/Actions/IndexAction.php b/app/Dashboard/Actions/IndexAction.php similarity index 78% rename from app/Home/Actions/IndexAction.php rename to app/Dashboard/Actions/IndexAction.php index 9e0a2eac..a10302f9 100644 --- a/app/Home/Actions/IndexAction.php +++ b/app/Dashboard/Actions/IndexAction.php @@ -1,8 +1,8 @@ put('menu', 'dashboard'); session()->put('title', 'Dashboard'); - return Inertia::render('home/VIndex', $this->handle()); + return Inertia::render('dashboard/VIndex', $this->handle()); } } diff --git a/app/Home/Blocks/Block.php b/app/Dashboard/Blocks/Block.php similarity index 94% rename from app/Home/Blocks/Block.php rename to app/Dashboard/Blocks/Block.php index ad3bdfa0..73f14549 100644 --- a/app/Home/Blocks/Block.php +++ b/app/Dashboard/Blocks/Block.php @@ -1,6 +1,6 @@ 'App\\Http\\Controllers'], function (): void { }); Route::group(['middleware' => 'auth:web'], function (): void { - Route::get('/', HomeIndexAction::class)->name('home'); + Route::get('/', DashboardIndexAction::class)->name('home'); Route::post('/api/member/search', SearchAction::class)->name('member.search'); Route::get('/initialize', InitializeFormAction::class)->name('initialize.form'); Route::post('/initialize', InitializeAction::class)->name('initialize.store'); diff --git a/tests/Feature/HomeTest.php b/tests/Feature/DashboardTest.php similarity index 90% rename from tests/Feature/HomeTest.php rename to tests/Feature/DashboardTest.php index e414cf82..1407049f 100644 --- a/tests/Feature/HomeTest.php +++ b/tests/Feature/DashboardTest.php @@ -2,12 +2,12 @@ namespace Tests\Feature; -use App\Home\Blocks\Block; -use App\Home\DashboardFactory; +use App\Dashboard\Blocks\Block; +use App\Dashboard\DashboardFactory; use Illuminate\Foundation\Testing\DatabaseTransactions; use Tests\TestCase; -class HomeTest extends TestCase +class DashboardTest extends TestCase { use DatabaseTransactions;