Before starting your Livewire journey,
Here are three basic considerations about public properties:
* 100009*1. The property name cannot conflict with the property name reserved for Livewire (for example, $rules or $message)
2. The data stored in the public properties (public properties), for Front-end JavaScript is visible.
Therefore, you should not store sensitive data in it.
3. Attributes can only be JavaScript-friendly data types (string, integer, array, boolean), or one of the following PHP types: Stringable, Collection, DateTime, Model, EloquentCollection.
No Comment
Post your comment