1
0
Fork 0
mirror of https://github.com/archtechx/livewire-access.git synced 2025-12-12 04:14:03 +00:00

restructure readme

This commit is contained in:
Samuel Štancl 2021-03-17 18:12:54 +01:00
parent 0b9847f118
commit 597f19528e

View file

@ -17,9 +17,7 @@ Sometimes, you may want allow access to a component's property in PHP — outsid
Other times, you may simply want more assurance than Livewire provides out of the box. The `WithExplicitAccess` trait is made for that. It disables all frontend access, and requires you to manually enable it on specific properties/methods.
The second option is recommended, because it provides the most security benefits. Accidentally making methods `public` is common, and it can cause security issues.
It especially useful for teams with junior engineers who don't yet have a full understanding of Livewire's internals, but can be very productive with it.
The second option is recommended, because it provides the most security benefits. Accidentally making methods `public` is common, and it can cause security issues. Disabling implicit access can be especially useful on teams with junior engineers who don't yet have a full understanding of Livewire's internals, but can be very productive with it.
## Installation