switch to auth()->user from session

This commit is contained in:
Andras Bacsai
2023-08-11 17:31:53 +02:00
parent e60ec6c47e
commit 833e45155d
32 changed files with 90 additions and 77 deletions

View File

@@ -1,6 +1,8 @@
<x-layout>
<x-team.navbar :team="session('currentTeam')"/>
<livewire:team.form/>
<x-team.navbar :team="auth()
->user()
->currentTeam()" />
<livewire:team.form />
@if (is_cloud())
<div class="pb-8">
<h3>Subscription</h3>
@@ -27,5 +29,5 @@
</x-forms.button>
</div>
@endif
<livewire:team.delete/>
<livewire:team.delete />
</x-layout>