Untitled
unknown
php
10 months ago
524 B
11
Indexable
<?php namespace App\Livewire; use Livewire\Component; class Simple extends Component { public int $step = 0; public string $movie = ''; public string $year = ''; private function getImdbData(): void { sleep(2); $this->year = 2020; } public function nextStep(): void { if ($this->step === 0) { $this->getImdbData(); } $this->step++; } public function render() { return view('livewire.simple'); } }
Editor is loading...
Leave a Comment