You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests\Feature\RoutesTest::test_task_api_crud_is_working
Expected response status code [200] but received 404.
Failed asserting that 200 is identical to 404.
Tests\Feature\RoutesTest::test_is_admin_middleware_is_working
Expected response status code [403] but received 500.
Failed asserting that 403 is identical to 500.
I have a two errors and this is a code of me :
Route::prefix('app')->group(function(){
// Tasks inside that /app group:
// Task 7: point URL /app/dashboard to a "Single Action" DashboardController
// Assign the route name "dashboard"
// Put one Route Group code line here below
Route::get('dashboard', [DashboardController::class])->name('dashboard');
// Task 8: Manage tasks with URL /app/tasks/***.
// Add ONE line to assign 7 resource routes to TaskController
// Put one code line here below
Route::resource('tasks', TaskController::class);
// Task 10: point URL /admin/dashboard to a "Single Action" Admin/DashboardController
// Put one code line here below
Route::get('dashboard', [AdminDashboardController::class]);
// Task 11: point URL /admin/stats to a "Single Action" Admin/StatsController
// Put one code line here below
Route::get('stats', [StatsController::class]);
// End of the /admin Route Group
});
The text was updated successfully, but these errors were encountered:
Tests\Feature\RoutesTest::test_task_api_crud_is_working
Expected response status code [200] but received 404.
Failed asserting that 200 is identical to 404.
Tests\Feature\RoutesTest::test_is_admin_middleware_is_working
Expected response status code [403] but received 500.
Failed asserting that 403 is identical to 500.
I have a two errors and this is a code of me :
Route::prefix('app')->group(function(){
// Tasks inside that /app group:
// End of the /app Route Group
});
Route::group(['prefix' => 'admin', 'middleware' => ['is_admin']], function(){
// Tasks inside that /admin group:
// Task 10: point URL /admin/dashboard to a "Single Action" Admin/DashboardController
// Put one code line here below
Route::get('dashboard', [AdminDashboardController::class]);
// Task 11: point URL /admin/stats to a "Single Action" Admin/StatsController
// Put one code line here below
Route::get('stats', [StatsController::class]);
// End of the /admin Route Group
The text was updated successfully, but these errors were encountered: