Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
429a7ca
wip
SethSharp Feb 5, 2024
b5ef9fb
sitemap
SethSharp Feb 6, 2024
e450046
fix link
SethSharp Feb 6, 2024
2c1624b
home page adjustments and add hover effect on sitemap links
SethSharp Feb 6, 2024
a877668
wip
SethSharp Feb 6, 2024
83f13c6
wip
SethSharp Feb 7, 2024
ee2c087
improve footer
SethSharp Feb 7, 2024
d82c291
fixes
SethSharp Feb 7, 2024
9742fe0
fix custom framing page
SethSharp Feb 7, 2024
6fb3a33
wip
SethSharp Feb 13, 2024
1ef6c36
wip
SethSharp Feb 13, 2024
2853ffc
wip
SethSharp Feb 13, 2024
7f5c256
wip
SethSharp Feb 13, 2024
2ce56a9
Merge pull request #11 from SethSharp/initial-blade-configuration
SethSharp Feb 13, 2024
a25e0b8
wip
SethSharp Feb 13, 2024
3af416b
register all routes in app
SethSharp Feb 13, 2024
6d7372b
testing bare min
SethSharp Feb 13, 2024
5e2168a
define public in route service provider
SethSharp Feb 13, 2024
cd3c5fb
actually define public in service provider
SethSharp Feb 13, 2024
74943a4
attempt eb commands
SethSharp Feb 13, 2024
84579cf
wip
SethSharp Feb 13, 2024
4982276
wip
SethSharp Feb 13, 2024
ae18866
add public.js to vite config
SethSharp Feb 13, 2024
cc31a9b
composer dump auto load in eb commands on push
SethSharp Feb 13, 2024
1e9e3bd
wip
SethSharp Feb 13, 2024
eabb68a
wip
SethSharp Feb 13, 2024
3890530
wip
SethSharp Feb 13, 2024
8a822eb
wip
SethSharp Feb 13, 2024
82642a9
test component import into home
SethSharp Feb 13, 2024
d334fdb
remove banner from app for testing
SethSharp Feb 13, 2024
066ac5f
remove pubic js import
SethSharp Feb 13, 2024
0db182b
optimize command
SethSharp Feb 13, 2024
c6a4ecb
use app.js import
SethSharp Feb 13, 2024
f6bf641
Apply prettier fixes
SethSharp Feb 13, 2024
bd86e5e
remove public.js file and import alpine into app.js
SethSharp Feb 13, 2024
bb6e91a
Merge branch 'main' of https://github.com/SethSharp/FramedJustForYou
SethSharp Feb 13, 2024
24799b7
basic layout
SethSharp Feb 13, 2024
6469272
wip
SethSharp Feb 14, 2024
660b003
wip
SethSharp Feb 14, 2024
b2860e9
attempt to integrate alpine intersect
SethSharp Feb 14, 2024
bfa0a6d
wip
SethSharp Feb 20, 2024
6555f14
wip
SethSharp Mar 11, 2024
986b5cb
add secondary and accent colours
SethSharp Mar 12, 2024
b2cb13a
wip
SethSharp Mar 12, 2024
234ccff
wip
SethSharp Mar 12, 2024
7aee359
wip
SethSharp Mar 12, 2024
230c751
google reviews
SethSharp Mar 12, 2024
103077f
order by rating and take 3
SethSharp Mar 12, 2024
e6d6806
wip
SethSharp Mar 12, 2024
4e67a75
arch window comp
SethSharp Mar 12, 2024
48636b6
add href
SethSharp Mar 12, 2024
a95688d
quotation mark icon
SethSharp Mar 13, 2024
9f645d6
new fonts
SethSharp Mar 13, 2024
e196210
one secondary colour now
SethSharp Mar 13, 2024
48c8722
wip
SethSharp Mar 13, 2024
03b4c92
wip
SethSharp Mar 13, 2024
5cfc03d
wip
SethSharp Mar 13, 2024
9e2fed7
wip
SethSharp Mar 13, 2024
bfc97cb
wip
SethSharp Mar 13, 2024
601c9a3
wip
SethSharp Mar 13, 2024
5086cf3
gradient on nav bar and make other title a strikethrough
SethSharp Mar 13, 2024
d914283
underline component
SethSharp Mar 13, 2024
15feba4
wip mega
SethSharp Mar 13, 2024
1427afb
update tailwind and mega menu
SethSharp Mar 14, 2024
47c1656
wip
SethSharp Mar 14, 2024
50847a8
wip
SethSharp Mar 14, 2024
5cf1ba7
Merge pull request #12 from SethSharp/sharpie/dev-279-home-page-v2
SethSharp Mar 14, 2024
5271906
wip
SethSharp Mar 14, 2024
493e668
wip
SethSharp Mar 14, 2024
2ce3860
add new env variables
SethSharp Mar 14, 2024
8c407f1
test
SethSharp Mar 15, 2024
540ed02
fix deploy order
SethSharp Mar 15, 2024
73590e8
icons, file and new framed config for contact info and open times
SethSharp Mar 15, 2024
a444ff3
wip
SethSharp Mar 15, 2024
23c2a9a
wip
SethSharp Mar 15, 2024
6bd8421
Merge pull request #13 from SethSharp/sharpie/dev-282-about-page-v2
SethSharp Mar 15, 2024
ebf4bec
Merge branch 'main' into sharpie/dev-283-contact-page-v2
SethSharp Mar 15, 2024
a2f8768
adjust config files
SethSharp Mar 15, 2024
304a0f3
wip
SethSharp Mar 15, 2024
87bd3f3
new images
SethSharp Mar 16, 2024
d0e257a
add beth and diane to about
SethSharp Mar 16, 2024
305cf3a
wip
SethSharp Mar 16, 2024
8f62985
wip
SethSharp Mar 16, 2024
c05d418
Merge branch 'main' into sharpie/dev-283-contact-page-v2
SethSharp Mar 16, 2024
fe7df02
wip
SethSharp Mar 16, 2024
efe0cf1
Merge pull request #14 from SethSharp/sharpie/dev-283-contact-page-v2
SethSharp Mar 16, 2024
bb8ebbf
wip
SethSharp Mar 16, 2024
a0b5ecd
wip
SethSharp Mar 17, 2024
086fab1
Merge branch 'main' into sharpie/dev-284-custom-framing-page-v2
SethSharp Mar 17, 2024
8d4c0b1
wip
SethSharp Mar 17, 2024
afd979f
wip
SethSharp Mar 17, 2024
337b10c
pricing
SethSharp Mar 17, 2024
f190fa9
Merge pull request #15 from SethSharp/sharpie/dev-285-printing-page-v2
SethSharp Mar 17, 2024
7082f64
remove printing from mega menu
SethSharp Mar 17, 2024
d37dcbf
Merge branch 'main' into sharpie/dev-284-custom-framing-page-v2
SethSharp Mar 17, 2024
fa50d79
wip
SethSharp Mar 17, 2024
1445185
wip
SethSharp Mar 17, 2024
f5eab81
faq wip
SethSharp Mar 17, 2024
8fd0324
wip
SethSharp Mar 17, 2024
cf099a3
Merge pull request #16 from SethSharp/sharpie/dev-284-custom-framing-…
SethSharp Mar 17, 2024
1bc8dc0
contact page responsiveness
SethSharp Mar 17, 2024
2a567f5
fix print responsiceness
SethSharp Mar 17, 2024
649297c
acrylic design
SethSharp Mar 17, 2024
1de326c
wip canvas
SethSharp Mar 17, 2024
31087c6
Update custom-framing.blade.php
SethSharp Mar 17, 2024
b177835
canvas images
SethSharp Mar 19, 2024
5a4a0de
wip
SethSharp Mar 19, 2024
f9b90d0
new conent component implemented
SethSharp Mar 19, 2024
64476b7
wip
SethSharp Mar 19, 2024
cac83ca
meta
SethSharp Mar 19, 2024
25ee6ca
inject meta data from pages + default meta in config
SethSharp Mar 20, 2024
c6f90f7
jigsaw and adjust indigenous
SethSharp Mar 20, 2024
8d779a6
add other page templates
SethSharp Mar 20, 2024
74cea58
whats on this page component
SethSharp Mar 21, 2024
b490557
wip medals
SethSharp Mar 21, 2024
7b2e7ea
meta
SethSharp Mar 21, 2024
75468b2
wip
SethSharp Mar 21, 2024
9b1e1db
wip
SethSharp Mar 21, 2024
5998133
restorations
SethSharp Mar 21, 2024
75eabe2
404
SethSharp Mar 21, 2024
ff7e8ca
Update Handler.php
SethSharp Mar 21, 2024
fc325ae
Merge pull request #17 from SethSharp/sharpie/dev-295-custom-framing-…
SethSharp Mar 21, 2024
b707262
def sans and change about order
SethSharp Mar 21, 2024
c18bff0
remove splide
SethSharp Mar 21, 2024
2660d87
upgrade to L11
SethSharp Mar 21, 2024
b513b5f
wip
SethSharp Mar 21, 2024
ef4d1bc
sitemap
SethSharp Mar 22, 2024
6a4cb79
wip
SethSharp Mar 22, 2024
1eb000f
inc php v
SethSharp Mar 22, 2024
c143732
inc composer php v
SethSharp Mar 22, 2024
c2ea069
wip
SethSharp Mar 22, 2024
a077eca
wip
SethSharp Mar 22, 2024
427b199
timezone
SethSharp Mar 22, 2024
25cb5a3
wip
SethSharp Mar 22, 2024
fafec53
wip
SethSharp Mar 22, 2024
b0105e6
wip
SethSharp Mar 22, 2024
8266c70
wip
SethSharp Mar 22, 2024
4ab64d6
wip
SethSharp Mar 23, 2024
fc83fac
wip
SethSharp Mar 23, 2024
f3c05da
wip
SethSharp Mar 23, 2024
2fa1aac
Update local-image.blade.php
SethSharp Mar 23, 2024
b48c23e
Update custom-framing.blade.php
SethSharp Mar 23, 2024
1547159
RELEASE
SethSharp Mar 23, 2024
043b448
remove inertia in app.js
SethSharp Mar 23, 2024
8e2dfe6
404
SethSharp Mar 23, 2024
29fa103
fix images?
SethSharp Mar 23, 2024
9e8f9bf
hide sitemap link on sm
SethSharp Mar 23, 2024
9769445
wip
SethSharp Mar 23, 2024
5e83b33
wip
SethSharp Mar 23, 2024
1018e55
sitemap
SethSharp Mar 23, 2024
aa51bfb
call to action
SethSharp Mar 23, 2024
65f6b0e
general adjustments
SethSharp Mar 23, 2024
fdecfc9
rm public and old routes
SethSharp Mar 23, 2024
180e06f
Update composer.lock
SethSharp Mar 24, 2024
006dd01
testing
SethSharp Apr 2, 2024
acc869c
wip
SethSharp Apr 2, 2024
01a1ff9
fix test
SethSharp Apr 2, 2024
e19428c
update eb package
SethSharp Apr 7, 2024
4863fd5
fix links
SethSharp Apr 13, 2024
c0fb474
wip
SethSharp Apr 13, 2024
2a30c71
full clean up
SethSharp Apr 17, 2024
1a776e7
wip
SethSharp Apr 17, 2024
21946f1
add predeploy hook
SethSharp Apr 17, 2024
19ca02e
test removing css
SethSharp Apr 17, 2024
25e0a51
wip
SethSharp Apr 17, 2024
4209a33
wip
SethSharp Apr 17, 2024
a8e1b34
wip
SethSharp Apr 17, 2024
ffc74f4
wip
SethSharp Apr 17, 2024
85da641
reinstall some deps
SethSharp Apr 17, 2024
c6e7eb8
Delete postcss.config.js
SethSharp Apr 17, 2024
1fc32f7
Revert "Delete postcss.config.js"
SethSharp Apr 17, 2024
0d0d843
Update app.blade.php
SethSharp Apr 17, 2024
c45062a
Update predeploy.sh
SethSharp Apr 24, 2024
00547a5
attempt postdeploy
SethSharp Apr 24, 2024
8231e7a
Update postdeploy.sh
SethSharp Apr 24, 2024
3f7ee05
Update postdeploy.sh
SethSharp Apr 24, 2024
db33acd
Update app.blade.php
SethSharp Apr 24, 2024
d78a783
add relay for life promos
SethSharp Jun 5, 2024
3a70d25
move relay down + some cleanup
SethSharp Jun 6, 2024
53e1a32
temp fix
SethSharp Jun 11, 2024
7a4da08
Revert "temp fix"
SethSharp Jun 11, 2024
a8173cf
allow larger reviews to fit
SethSharp Jun 19, 2024
f30ab29
updates
SethSharp Jun 19, 2024
7fd2bd7
wip
SethSharp Jun 22, 2024
e8dd7aa
change saturday hours
SethSharp Jul 28, 2024
9959a48
some general improvements
SethSharp Sep 15, 2024
03868f5
update deps
SethSharp Oct 2, 2024
a442f53
remove realy for life - add main back in
SethSharp Oct 2, 2024
d951992
improve 404
SethSharp Oct 2, 2024
d6da7df
sunday times
SethSharp Oct 3, 2024
5dc1f52
remove underline animation on fotter nav
SethSharp Oct 3, 2024
40d9ce5
wip
SethSharp Oct 7, 2024
d965ed9
correct min-h-screen
SethSharp Oct 12, 2024
a622c45
improve position for diane
SethSharp Oct 12, 2024
43b897d
improve positions for john & karen
SethSharp Oct 12, 2024
063b6cb
add prod env to workflow
SethSharp Oct 26, 2024
697535d
only deploy on pushes to main
SethSharp Oct 26, 2024
595f609
update deps
SethSharp Nov 17, 2024
30533ea
update npm deps
SethSharp Nov 17, 2024
4cd4483
hash alpine cdn scripts
SethSharp Nov 17, 2024
5c2ecc1
logo
SethSharp Nov 17, 2024
de7373b
banner
SethSharp Nov 17, 2024
a487b49
https
SethSharp Nov 17, 2024
48143a9
prevent downgrade from https to http
SethSharp Nov 17, 2024
e97cfd9
Merge branch 'main' into christmas-2024
SethSharp Dec 1, 2024
bc85d77
fix alpine cdn
SethSharp Dec 1, 2024
9608847
Merge pull request #18 from SethSharp/christmas-2024
SethSharp Dec 1, 2024
5dd4b9c
design
SethSharp Dec 1, 2024
f2187f8
tagline
SethSharp Dec 1, 2024
0f657a0
Merge pull request #19 from SethSharp/sharpie/dev-633-improve-footer-ux
SethSharp Dec 1, 2024
73f8e59
fix social links
SethSharp Dec 1, 2024
727dfbb
typo
SethSharp Dec 1, 2024
1f01612
christmas logo when month is 12
SethSharp Dec 3, 2024
b859340
dependency updates
SethSharp Dec 27, 2024
cc254ca
header improvements + content to take up more space on mobile
SethSharp Dec 27, 2024
51f0ffa
remove christmas banner
SethSharp Jan 3, 2025
641e87e
2025 copyright
SethSharp Jan 3, 2025
211aaf0
go to
SethSharp Jan 13, 2025
de39e5b
update deps
SethSharp Jan 14, 2025
c9e3b29
improve contact page + new glass on custom framing
SethSharp Jan 14, 2025
b7e5081
jigsaw fixes
SethSharp Jan 14, 2025
7615b30
the business > the company
SethSharp Jan 14, 2025
cddaeda
capital - medals
SethSharp Jan 14, 2025
c6e5ded
bigger images - medals
SethSharp Jan 14, 2025
d6c1832
Glass - !Glassing
SethSharp Jan 14, 2025
7138e57
canvas off the roll - !canvas off the role
SethSharp Jan 14, 2025
2ae2e6b
Artiteq
SethSharp Jan 14, 2025
0c9b67b
fix spelling for canvas - printing
SethSharp Jan 14, 2025
59f1e2d
add thryv scripts + inject into site
SethSharp Jan 18, 2025
73658e1
breadcrumb components
SethSharp Jan 18, 2025
143240e
breadcrumbs for all custom framing pages
SethSharp Jan 18, 2025
036e2da
wip
SethSharp Jan 18, 2025
686819f
wip
SethSharp Jan 18, 2025
4a8fcbf
Merge pull request #21 from SethSharp/breadcrumbs
SethSharp Jan 18, 2025
82b31ee
services dropdown menu is toggled with mouse enter/leave
SethSharp Jan 19, 2025
943752b
Merge branch 'main' into sharpie/dev-680-install-thryv-scripts
SethSharp Jan 30, 2025
00a1b68
add privacy policy
SethSharp Jan 30, 2025
bd6cde8
Merge pull request #20 from SethSharp/sharpie/dev-680-install-thryv-s…
SethSharp Feb 2, 2025
9c5f744
update compsoer + use php 8.3
SethSharp Feb 25, 2025
0a45a80
handle null place_id
SethSharp Feb 25, 2025
b1c4509
wip
SethSharp Feb 25, 2025
b96762f
disable deployment to eb until laravel cloud is up and running
SethSharp Feb 25, 2025
8585b2a
just disable the whole thing + php 8.3 support
SethSharp Feb 25, 2025
d975a54
Merge branch 'main' into deploy-to-laravel-cloud
SethSharp Feb 25, 2025
945804a
php 8.3 in workflow
SethSharp Feb 25, 2025
ebae89b
Merge pull request #22 from SethSharp/deploy-to-laravel-cloud
SethSharp Feb 25, 2025
5fd510b
wip
SethSharp Feb 25, 2025
5d09ca5
Delete .platform directory
SethSharp Feb 26, 2025
5706855
Delete .ebextensions directory
SethSharp Feb 26, 2025
b1b051e
remove red background in services-mega-menu.blade.php
SethSharp Feb 26, 2025
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
6 changes: 0 additions & 6 deletions .ebextensions/securelistener-clb.config

This file was deleted.

8 changes: 6 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ APP_NAME=FramedJustForYou
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://framedjustforyou.test
APP_URL=https://framedjustforyou.test
CLOUDFRONT_URL=

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
Expand All @@ -11,7 +12,7 @@ LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_DATABASE=framed
DB_USERNAME=root
DB_PASSWORD=

Expand Down Expand Up @@ -57,3 +58,6 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

GOOGLE_API_KEY=
GOOGLE_PLACE_ID=
48 changes: 19 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: Deployment
name: Deploy

on: [ push ]
on:
push:
branches:
- main

jobs:
deployment:

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

environment: production

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: zip, sqlite3
coverage: none

Expand All @@ -29,9 +34,9 @@ jobs:
run: npm ci

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.production.example', '.env');"
Expand All @@ -43,26 +48,11 @@ jobs:
run: |
npm run build

- name: Clear Cache
run: |
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan config:clear

- name: Build ZIP Deployment Package
if: github.ref == 'refs/heads/main'
run: zip -r deploy.zip ./ -x "node_modules/*" -x "vendor/*" -x "tests/*"
- name: Run Tests
run: ./vendor/bin/phpunit

- name: Deploy to Elastic Beanstalk
if: github.ref == 'refs/heads/main'
uses: einaregilsson/beanstalk-deploy@v18
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: "FramedJust4You"
environment_name: FramedJust4You-env
existing_bucket_name: ${{ secrets.AWS_BUCKET_NAME }}
region: ap-southeast-2
version_label: ${{ github.sha }}
deployment_package: deploy.zip
- name: Deploy to Laravel Cloud
if: success()
run: |
curl -X POST ${{ secrets.CLOUD_DEPLOY_HOOK }} \
-H "Content-Type: application/json" \
54 changes: 0 additions & 54 deletions .github/workflows/format.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .platform/nginx/conf.d/elasticbeanstalk/laravel.conf

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<a href="https://github.com/SethSharp/FramedJustForYou/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
</p>

Is a locally owned and operated business on the Gold Coast since 1997. After news of the old sites provider coming to an end, I put my hand up to help resolve this by creating a new and modern website. With more information and a greater improvement to the previous site. This new design and infrawstructure is a major upgrade and has provided an awesome learning experience:
Is a locally owned and operated business on the Gold Coast since 1997. After news of the old site provider coming to an end, I put my hand up to help resolve this by creating a new and modern website. With more information and a greater improvement to the previous site. This new design and infrastructure is a major upgrade and has provided an awesome learning experience:

1. Working with a client and gathering requirements
2. Implementing best practises in a production environment
3. Learning heaps of new techniques and technology to achieve
2. Implementing best practices in a production environment
3. Learning more about AWS
4. Learning heaps of new techniques
5. Solving new problems


Full Production site [here](https://www.framedjustforyou.com.au)
12 changes: 12 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Exceptions;

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Inertia\Inertia;
use Throwable;

class Handler extends ExceptionHandler
Expand All @@ -27,4 +28,15 @@ public function register(): void
//
});
}

public function render($request, Throwable $e)
{
$response = parent::render($request, $e);
$status = $response->status();

return match ($status) {
404 => response()->view('errors.404', [], 404),
default => $response
};
}
}
16 changes: 16 additions & 0 deletions app/Http/Controllers/Public/ShowAboutController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App\Http\Controllers\Public;

use Illuminate\View\View;
use App\Http\Controllers\Controller;

class ShowAboutController extends Controller
{
public function __invoke(): View
{
return view('pages/about', [
'team' => config('framed.team')
]);
}
}
19 changes: 19 additions & 0 deletions app/Http/Controllers/Public/ShowHomeController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Http\Controllers\Public;

use Illuminate\View\View;
use App\Support\Traits\GoogleApi;
use App\Http\Controllers\Controller;

class ShowHomeController extends Controller
{
use GoogleApi;

public function __invoke(): View
{
return view('pages/home', [
'reviews' => $this->getRecentReviews()
]);
}
}
14 changes: 12 additions & 2 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Kernel extends HttpKernel
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\StrictTransportSecurity::class
];

/**
Expand All @@ -36,13 +37,22 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\App\Http\Middleware\HandleInertiaRequests::class,
\Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class,
],

'public' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\Illuminate\Http\Middleware\AddLinkHeadersForPreloadedAssets::class,
],

'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Illuminate\Routing\Middleware\ThrottleRequests::class.':api',
\Illuminate\Routing\Middleware\ThrottleRequests::class . ':api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
Expand Down
44 changes: 0 additions & 44 deletions app/Http/Middleware/HandleInertiaRequests.php

This file was deleted.

24 changes: 24 additions & 0 deletions app/Http/Middleware/StrictTransportSecurity.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

class StrictTransportSecurity
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{
$response = $next($request);

$response->headers->set('Strict-Transport-Security', 'max-age=63072000; includeSubDomains; preload');

return $response;
}
}
11 changes: 11 additions & 0 deletions app/Support/CacheKeys.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Support;

class CacheKeys
{
public static function googleReviews(): string
{
return 'google-reviews';
}
}
Loading