From 2012aa636f9f3628af908f25d9497ff8742918cb Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 6 Dec 2024 16:38:43 +0100 Subject: [PATCH] Add head component for html page head tag --- resources/views/components/head.blade.php | 12 ++++++++++++ resources/views/components/layouts/app.blade.php | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 resources/views/components/head.blade.php diff --git a/resources/views/components/head.blade.php b/resources/views/components/head.blade.php new file mode 100644 index 00000000..7b9ff065 --- /dev/null +++ b/resources/views/components/head.blade.php @@ -0,0 +1,12 @@ + + + + + {{ session()->get('title') }} | {{ config('app.name') }} + + + @if(auth()->id()) + + @endif + @vite('resources/livewire-js/app.js') + diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index 52f704a4..065b4883 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -1,17 +1,6 @@ - - - - - {{ session()->get('title') }} | {{ config('app.name') }} - - - @if(auth()->id()) - - @endif - @vite('resources/livewire-js/app.js') - + {{ $slot }}