We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not possible to use wire.model.defer with this package in livewire
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Syntax PHP 8+
public function mount(Blog $blog): void { $this->blog = $blog->loadMissing(['seo', 'translations']); ... if ($this->blog->exists) { $this->translations = $this->blog?->getTranslationsArray(); } .... collect(array_keys($this->locales))->each(function ($key) { if (empty($this->translations[$key])) { $this->translations[$key]['title'] ??= ''; $this->translations[$key]['longtitle'] ??= ''; $this->translations[$key]['description'] ??= ''; $this->translations[$key]['content'] ??= ''; } }); } public function save(): void { $this->blog->fill($this->translations); $this->blog->slug ??= str($this->blog->translateOrDefault('en')?->title)->slug(); $this->validated(); .... $this->blog->save(); .... }
Or use DTO https://laravel-livewire.com/docs/2.x/properties#wireable-properties
No branches or pull requests
It's not possible to use wire.model.defer with this package in livewire
The text was updated successfully, but these errors were encountered: