diff --git a/app/Models/Planner.php b/app/Models/Planner.php index e30ba9a..16614bb 100644 --- a/app/Models/Planner.php +++ b/app/Models/Planner.php @@ -11,6 +11,7 @@ /** * @property int $id * @property static PlannerFactory factory($count = null, $state = []) + * @method static first() */ class Planner extends Authenticatable { diff --git a/database/seeders/DishesSeeder.php b/database/seeders/DishesSeeder.php index 9e2d5a8..6503110 100644 --- a/database/seeders/DishesSeeder.php +++ b/database/seeders/DishesSeeder.php @@ -11,6 +11,7 @@ class DishesSeeder extends Seeder { public function run(): void { + /** @var Planner $planner */ $planner = Planner::first() ?? Planner::factory()->create(); // Get users belonging to this planner diff --git a/public/images/logo-with-text.png b/public/images/logo-with-text.png new file mode 100644 index 0000000..20025fd Binary files /dev/null and b/public/images/logo-with-text.png differ diff --git a/public/images/logo-without-text.png b/public/images/logo-without-text.png new file mode 100644 index 0000000..287e3c1 Binary files /dev/null and b/public/images/logo-without-text.png differ diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index 7507915..c007beb 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -20,8 +20,9 @@
- - DISH PLANNER + + Dish Planner + DISH PLANNER
@@ -58,7 +59,7 @@ class="inline-flex items-center px-3 py-2 text-sm font-medium {{ request()->rout -
routeIs('schedule.*') ? 'text-ac if (status === 419) { // Prevent the default error handling preventDefault(); - + try { // Fetch a new CSRF token const response = await fetch("/refresh-csrf", { @@ -184,22 +185,22 @@ class="block text-2xl font-medium {{ request()->routeIs('schedule.*') ? 'text-ac }, credentials: "same-origin", }); - + if (response.ok) { const data = await response.json(); const newToken = data.token; - + // Update the CSRF token in the meta tag const csrfMeta = document.querySelector("meta[name='csrf-token']"); if (csrfMeta) { csrfMeta.setAttribute("content", newToken); } - + // Update Livewire's CSRF token if (window.Livewire && Livewire.csrfToken) { Livewire.csrfToken = newToken; } - + // Retry the original request with the new token retry(); } else { @@ -215,9 +216,9 @@ class="block text-2xl font-medium {{ request()->routeIs('schedule.*') ? 'text-ac }); }); - + - \ No newline at end of file + diff --git a/resources/views/components/layouts/guest.blade.php b/resources/views/components/layouts/guest.blade.php index 70c768a..7b9107e 100644 --- a/resources/views/components/layouts/guest.blade.php +++ b/resources/views/components/layouts/guest.blade.php @@ -12,12 +12,14 @@ @livewireStyles -
-
-
-

DISH PLANNER

-
+
+ +
+ Dish Planner +
+ +
@yield('content')