Skip to content

Commit

Permalink
Bump packages and tweak the routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jan 5, 2024
1 parent 42c071e commit adda973
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Console/InstallsTurboStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function installTurboStack(bool $importmaps = true)
{
// Install Turbo Laravel, Stimulus Laravel, Importmap Laravel, and TailwindCSS Laravel...
$packages = array_merge(
['hotwired-laravel/turbo-laravel:^2.0.0-beta2', 'hotwired-laravel/stimulus-laravel:^1.0.0-beta3'],
['hotwired-laravel/turbo-laravel:^2.0.0-beta3', 'hotwired-laravel/stimulus-laravel:^1.0.0-beta3'],
$importmaps ? ['tonysm/importmap-laravel:^1.8', 'tonysm/tailwindcss-laravel:^0.11'] : [],
);

Expand Down
7 changes: 3 additions & 4 deletions stubs/turbo/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@
})->middleware(['auth', 'verified'])->name('dashboard');

Route::middleware('auth')->group(function () {
Route::singleton('profile', ProfileController::class);

Route::prefix('profile')->as('profile.')->group(function () {
Route::singleton('password', ProfilePasswordController::class)->only(['edit', 'update']);
Route::get('/delete', [ProfileController::class, 'delete'])->name('delete');
Route::delete('/', [ProfileController::class, 'destroy'])->name('destroy');
});

Route::get('/profile/delete', [ProfileController::class, 'delete'])->name('profile.delete');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
Route::singleton('profile', ProfileController::class);
});

require __DIR__.'/auth.php';

0 comments on commit adda973

Please sign in to comment.