mirror of
https://github.com/archtechx/livewire-access.git
synced 2025-12-12 12:24:03 +00:00
implicit access
This commit is contained in:
parent
a5e58a14d8
commit
8df06ae2c3
9 changed files with 184 additions and 22 deletions
27
tests/ExplicitComponent.php
Normal file
27
tests/ExplicitComponent.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace Lean\LivewireAccess\Tests;
|
||||
|
||||
use Lean\LivewireAccess\WithExplicitAccess;
|
||||
use Lean\LivewireAccess\FrontendAccess;
|
||||
use Livewire\Component;
|
||||
|
||||
class ExplicitComponent extends Component
|
||||
{
|
||||
use WithExplicitAccess;
|
||||
|
||||
public string $foo = 'foo';
|
||||
|
||||
#[FrontendAccess]
|
||||
public string $bar = 'bar';
|
||||
|
||||
public function abc() {}
|
||||
|
||||
#[FrontendAccess]
|
||||
public function def() {}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue