diff --git a/README.md b/README.md index 4af0e31..25fbbd2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ ## Kyle Evangelisto's [website](https://kyledoes.dev) +Custom CMS backend built with Livewire & FluxUI + FluxUI, Livewire, Laravel, AlpineJs & TailwindCSS diff --git a/app/Livewire/Forms/PhotoForm.php b/app/Livewire/Forms/PhotoForm.php index b0a2ecd..d58fa15 100644 --- a/app/Livewire/Forms/PhotoForm.php +++ b/app/Livewire/Forms/PhotoForm.php @@ -14,13 +14,13 @@ class PhotoForm extends Form { #[Validate('required|string')] - public ?string $name; + public string $name = ''; #[Validate('nullable|date')] - public ?string $capturedAt; + public string $capturedAt = ''; #[Validate('nullable|string|max:255')] - public ?string $description; + public string $description = ''; #[Validate('required|integer|in:1,3', message: 'The Photo Type is Required')] public int $type = Asset::PHOTO; diff --git a/resources/views/livewire/photos/gallery.blade.php b/resources/views/livewire/photos/gallery.blade.php index 39962f3..7ba693b 100644 --- a/resources/views/livewire/photos/gallery.blade.php +++ b/resources/views/livewire/photos/gallery.blade.php @@ -17,9 +17,11 @@