Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 3f07d22

Browse files
committed
Version bump
1 parent c4ee5e8 commit 3f07d22

File tree

9 files changed

+708
-500
lines changed

9 files changed

+708
-500
lines changed

app/package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"pre-publish": "npm upgrade && vite build"
77
},
88
"devDependencies": {
9-
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.6.tgz",
9+
"@protonemedia/laravel-splade": "file:../protonemedia-laravel-splade-1.4.7.tgz",
1010
"@tailwindcss/forms": "^0.5.2",
1111
"@tailwindcss/typography": "^0.5.2",
1212
"@vitejs/plugin-vue": "^4.1.0",

app/resources/views/navigation/nav.blade.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
<a dusk="non-spa-three" href="/navigation/three">Non-SPA Three</a>
4545
</div>
4646

47+
<div class="flex space-x-3">
48+
<a dusk="download-attachment" href="/download/attachment">Download Attachent</a>
49+
<a dusk="download-inline" href="/download/inline">Download Inline</a>
50+
</div>
51+
4752
<div v-show="toggled" class="absolute inset-0 bg-black/75 z-10"></div>
4853

4954
<x-splade-dialog open="toggled">

app/routes/web.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use App\Http\Controllers\ToastController;
2525
use App\Http\Controllers\TwoFieldsFormController;
2626
use App\Http\UserTableView;
27+
use Illuminate\Http\Response;
2728
use Illuminate\Support\Facades\Cache;
2829
use Illuminate\Support\Facades\Route;
2930
use Illuminate\Support\Str;
@@ -66,6 +67,21 @@
6667
Route::spladeUploads();
6768
Route::spladeWithVueBridge();
6869

70+
Route::get('download/attachment', function () {
71+
return new Response('test', 200, [
72+
'Content-Type' => 'application/text',
73+
'Content-Disposition' => 'attachment; filename="test.txt"',
74+
'Content-Length' => 4,
75+
]);
76+
})->name('download.attachment');
77+
78+
Route::get('download/inline', function () {
79+
return new Response('test', 200, [
80+
'Content-Type' => 'application/text',
81+
'Content-Disposition' => 'inline; filename="test.txt"',
82+
]);
83+
})->name('download.inline');
84+
6985
Route::get('/api/countries/keyValue', [CountriesController::class, 'keyValue'])->name('api.countries.keyValue');
7086
Route::get('/api/countries/objects', [CountriesController::class, 'objects'])->name('api.countries.objects');
7187
Route::get('/api/provinces/{country}', [CountriesController::class, 'provinces'])->name('api.countries.provinces');

0 commit comments

Comments
 (0)