mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
correct auth in blade
This commit is contained in:
@@ -23,9 +23,9 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
||||
Nova::withoutThemeSwitcher();
|
||||
|
||||
// login with user id 1, if we are in local environment
|
||||
if (app()->environment('local')) {
|
||||
auth()->loginUsingId(1);
|
||||
}
|
||||
// if (app()->environment('local')) {
|
||||
// auth()->loginUsingId(1);
|
||||
// }
|
||||
|
||||
Nova::footer(function ($request) {
|
||||
// return MIT license and date
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
<body class="font-sans antialiased bg-21gray dark">
|
||||
<x-jet-banner />
|
||||
<div class="min-h-screen">
|
||||
@auth
|
||||
@livewire('navigation-menu')
|
||||
@endauth
|
||||
<!-- Page Heading -->
|
||||
@if (isset($header))
|
||||
<header class="bg-white shadow">
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
@auth
|
||||
<div></div>
|
||||
@elseauth
|
||||
@else
|
||||
<div class="inline-flex items-center ml-5 text-lg space-x-6 lg:justify-end">
|
||||
<a href="{{ route('nova.login') }}"
|
||||
class="text-base font-medium leading-6 text-gray-400 hover:text-gray-300 whitespace-no-wrap transition duration-150 ease-in-out">
|
||||
|
||||
Reference in New Issue
Block a user