Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
87b01cf
Bump postcss
dependabot[bot] Oct 18, 2026
46f67d5
Bump the composer-minor-and-patch group with 3 updates
dependabot[bot] Oct 18, 2026
ffa286e
Bump laravel/boost from 1.8.13 to 2.10.3
dependabot[bot] Oct 18, 2026
f9637dd
Merge pull request #106 from AustinMastLab/dependabot/npm_and_yarn/de…
rbruhn Oct 21, 2026
ee7a67f
Merge pull request #107 from AustinMastLab/dependabot/composer/develo…
rbruhn Oct 21, 2026
a40d4f8
Merge pull request #108 from AustinMastLab/dependabot/composer/develo…
rbruhn Oct 21, 2026
787d3ad
Bump spatie/laravel-permission from 6.25.0 to 8.3.0
dependabot[bot] Oct 21, 2026
1391b9c
Merge pull request #110 from AustinMastLab/dependabot/composer/develo…
rbruhn Oct 21, 2026
fb6c4df
Bump laravel/tinker from 2.11.1 to 3.0.2
dependabot[bot] Oct 21, 2026
deadc7c
Merge pull request #111 from AustinMastLab/dependabot/composer/develo…
rbruhn Oct 21, 2026
7f691cd
Upgrade Sweet Alert to v8
rbruhn Oct 21, 2026
f9cd75d
Merge pull request #112 from AustinMastLab/109-sweet-alert-8
rbruhn Oct 21, 2026
205ba73
Call alert:publish after Composer dumps the autoloader
rbruhn Oct 21, 2026
948f479
Merge pull request #113 from AustinMastLab/112-alert-publish-composer…
rbruhn Oct 21, 2026
589da37
Use the shared deploy tasks from deployer-recipes
rbruhn Oct 22, 2026
fa1b593
Merge pull request #115 from AustinMastLab/114-shared-deploy-tasks
rbruhn Oct 22, 2026
406f9bf
Bump the composer-minor-and-patch group with 3 updates
dependabot[bot] Oct 25, 2026
0baa8db
Bump barryvdh/laravel-debugbar from 3.16.5 to 4.4.4
dependabot[bot] Oct 25, 2026
463db40
Bump postcss
dependabot[bot] Oct 25, 2026
0a8b660
Bump spatie/laravel-responsecache from 7.7.2 to 8.6.0
dependabot[bot] Oct 25, 2026
25f916b
Bump austinmastlab/deployer-recipes from 1.2.0-rc1 to 1.2.0
dependabot[bot] Oct 25, 2026
a57d0e6
Merge remote-tracking branch 'origin/dependabot/composer/development/…
rbruhn Oct 26, 2026
da9cee0
Merge remote-tracking branch 'origin/dependabot/composer/development/…
rbruhn Oct 26, 2026
5927865
Merge remote-tracking branch 'origin/dependabot/composer/development/…
rbruhn Oct 26, 2026
728eb8d
Merge remote-tracking branch 'origin/dependabot/composer/development/…
rbruhn Oct 26, 2026
caddfef
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/developm…
rbruhn Oct 26, 2026
b0ed3ed
Migrate responsecache config to v8 structure
rbruhn Oct 26, 2026
c1c0404
Republish debugbar config for v4
rbruhn Oct 26, 2026
b4c8446
Update filament/filament to 5.11.0
rbruhn Oct 26, 2026
6adbe61
Update symfony/mime to 7.4.22 and laravel-debugbar to 4.4.5
rbruhn Oct 29, 2026
bb84ad8
Merge dependency updates (#116, #117, #118, #119, #120)
rbruhn Oct 29, 2026
7cdc297
Skip the response cache while the session has flash data
rbruhn Oct 29, 2026
a9777bc
Fix the mb--40 spacing class so the contact Submit button clears the …
rbruhn Oct 29, 2026
04bc483
Merge pull request #122 from AustinMastLab/121-contact-submit-spacing
rbruhn Oct 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions app/Http/CacheProfiles/SkipCacheWhenSessionHasFlash.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

/*
* Copyright (C) 2022 - 2026, Digitization Academy
* idigacademy@gmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

namespace App\Http\CacheProfiles;

use Illuminate\Http\Request;
use Spatie\ResponseCache\CacheProfiles\CacheAllSuccessfulGetRequests;

/**
* Caches successful GET requests, except while the session carries flash data.
*
* Flash data (toast messages, validation errors, old input) is rendered into
* the page, so such a request must neither be served from the cache nor be
* stored in it.
*/
class SkipCacheWhenSessionHasFlash extends CacheAllSuccessfulGetRequests
{
public function enabled(Request $request): bool
{
return parent::enabled($request) && ! $this->hasFlashData($request);
}

protected function hasFlashData(Request $request): bool
{
if (! $request->hasSession()) {
return false;
}

$session = $request->session();

return ! empty($session->get('_flash.old')) || ! empty($session->get('_flash.new'));
}
}
11 changes: 7 additions & 4 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use RealRashid\SweetAlert\Http\Middleware\ToSweetAlert;
use Spatie\ResponseCache\Middlewares\CacheResponse;
use Spatie\ResponseCache\Middlewares\DoNotCacheResponse;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
Expand All @@ -12,13 +15,13 @@
)
->withMiddleware(function (Middleware $middleware) {
$middleware->web(append: [
\RealRashid\SweetAlert\ToSweetAlert::class,
\Spatie\ResponseCache\Middlewares\CacheResponse::class,
ToSweetAlert::class,
CacheResponse::class,
]);

$middleware->alias([
'cacheResponse' => \Spatie\ResponseCache\Middlewares\CacheResponse::class,
'doNotCacheResponse' => \Spatie\ResponseCache\Middlewares\DoNotCacheResponse::class,
'cacheResponse' => CacheResponse::class,
'doNotCacheResponse' => DoNotCacheResponse::class,
]);
})
->withExceptions(function (Exceptions $exceptions) {
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
"laravel/framework": "^12.0",
"laravel/horizon": "^5.48",
"laravel/sanctum": "^v4.0.0",
"laravel/tinker": "^2.7",
"realrashid/sweet-alert": "^v7.3.0",
"laravel/tinker": "^3.0",
"realrashid/sweet-alert": "^8.0",
"spatie/laravel-honeypot": "^4.6",
"spatie/laravel-permission": "^6.0",
"spatie/laravel-responsecache": "^7.7"
"spatie/laravel-permission": "^8.3",
"spatie/laravel-responsecache": "^8.6"
},
"require-dev": {
"austinmastlab/deployer-recipes": "^1.0.1",
"barryvdh/laravel-debugbar": "^3.5",
"austinmastlab/deployer-recipes": "^1.2.0-rc1",
"barryvdh/laravel-debugbar": "^4.4",
"barryvdh/laravel-ide-helper": "^v3.0.0",
"deployer/deployer": "^8.0",
"fakerphp/faker": "^1.23",
"kitloong/laravel-migrations-generator": "^v7.0.1",
"laravel/boost": "^1.8",
"laravel/boost": "^2.10",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.24",
"mockery/mockery": "^1.6",
Expand Down Expand Up @@ -61,7 +61,7 @@
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan sweetalert:publish --ansi"
"@php artisan alert:publish --assets --force --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
Expand Down
Loading
Loading