Skip to content

Commit

Permalink
Fix for courses routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
kusaljayawardhana committed Aug 29, 2024
1 parent 7591e7e commit fd401b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/backend/courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
})->name('courses.index')
->breadcrumbs(function (Trail $trail) {
$trail->push(__('Home'), route('dashboard.home'))
->push(__('Courses'), route('courses.index'));
->push(__('Courses'), route('dashboard.courses.index'));
});

// Create
Route::get('courses/create', [CourseController::class, 'create'])
->name('courses.create')
->breadcrumbs(function (Trail $trail) {
$trail->push(__('Home'), route('dashboard.home'))
->push(__('Courses'), route('courses.index'))
->push(__('Courses'), route('dashboard.courses.index'))
->push(__('Create'));
});

Expand All @@ -32,7 +32,7 @@
->name('courses.edit')
->breadcrumbs(function (Trail $trail) {
$trail->push(__('Home'), route('dashboard.home'))
->push(__('Courses'), route('courses.index'))
->push(__('Courses'), route('dashboard.courses.index'))
->push(__('Edit'));
});

Expand All @@ -45,7 +45,7 @@
->name('courses.delete')
->breadcrumbs(function (Trail $trail) {
$trail->push(__('Home'), route('dashboard.home'))
->push(__('Courses'), route('courses.index'))
->push(__('Courses'), route('dashboard.courses.index'))
->push(__('Delete'));
});

Expand Down

0 comments on commit fd401b3

Please sign in to comment.