1
0
Fork 0
mirror of https://github.com/archtechx/livewire-access.git synced 2025-12-12 12:24:03 +00:00
This commit is contained in:
Samuel Štancl 2021-03-17 17:48:51 +01:00
parent 8df06ae2c3
commit e73f001fe6

View file

@ -5,7 +5,7 @@ This package adds PHP 8.0 attribute support to Livewire. In specific, the attrib
The package ships with two pairs of traits and attributes. One for *explicit* access, and one for *implicit* access. The package ships with two pairs of traits and attributes. One for *explicit* access, and one for *implicit* access.
- Components which implement the trait for **explicit** access will *deny* access to all properties and methods if they don't have the `#[FrontendAccess]` attribute. - Components which implement the trait for **explicit** access will *deny* access to all properties and methods if they don't have the `#[FrontendAccess]` attribute.
- Components which implement the trait for **implicit** access will *allow* access unless the component has the `#[BlockFrontendAccess]` attribute. - Components which implement the trait for **implicit** access will *allow* access to all properties and methods unless they have the `#[BlockFrontendAccess]` attribute.
This acts as a layer on top of Livewire's logic for distinguishing public properties, but it gives you the ability to manually make changes when you need more control than property/method visibility. This acts as a layer on top of Livewire's logic for distinguishing public properties, but it gives you the ability to manually make changes when you need more control than property/method visibility.