TestLivewireComponent.php 481 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Facade\Ignition\Tests\stubs\Components;
  3. use Livewire\Component;
  4. class TestLivewireComponent extends Component
  5. {
  6. public $string;
  7. public $stringable;
  8. public function mount(string $title)
  9. {
  10. $this->string = $title;
  11. }
  12. public function render()
  13. {
  14. return 'nowp';
  15. }
  16. public function change()
  17. {
  18. $this->string = 'Ruben';
  19. }
  20. public function getComputedProperty()
  21. {
  22. return 'bla';
  23. }
  24. }