From 1728cbf28b123766474ec2b2c66ae4138465b777 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 31 Mar 2024 01:57:59 -0400 Subject: [PATCH] Not used --- app/Models/User.php | 8 ---- resources/views/templates/wrapper.blade.php | 53 --------------------- 2 files changed, 61 deletions(-) delete mode 100644 resources/views/templates/wrapper.blade.php diff --git a/app/Models/User.php b/app/Models/User.php index 9bef6bdfd..aff292c7c 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -198,14 +198,6 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac return $rules; } - /** - * Return the user model in a format that can be passed over to Vue templates. - */ - public function toVueObject(): array - { - return Collection::make($this->toArray())->except(['id', 'external_id'])->toArray(); - } - /** * Send the password reset notification. * diff --git a/resources/views/templates/wrapper.blade.php b/resources/views/templates/wrapper.blade.php deleted file mode 100644 index 4c2705517..000000000 --- a/resources/views/templates/wrapper.blade.php +++ /dev/null @@ -1,53 +0,0 @@ - - - - {{ config('app.name') }} - - @section('meta') - - - - - - - - - - - - - - @show - - @section('user-data') - @if(!is_null(Auth::user())) - - @endif - @if(!empty($siteConfiguration)) - - @endif - @show - - - @yield('assets') - - @include('layouts.scripts') - - - @section('content') - @yield('above-container') - @yield('container') - @yield('below-container') - @show - @section('scripts') - {!! $asset->js('main.js') !!} - @show - -