You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
496 B

<?php
namespace App\Http\Livewire;
use App\Models\ProcessHistories;
use Livewire\Component;
class History extends Component
{
public $histories;
protected $listeners = ['refreshHistory' => '$refresh'];
public function mount()
{
$this->loadHistories();
}
public function loadHistories()
{
$this->histories = ProcessHistories::orderBy('id', 'desc')->get();
}
public function render()
{
return view('livewire.history');
}
}