fashionscape/app/Livewire/Outfits/OutfitList.php
Alyx Batte cc550d9677
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Initial commit
2025-12-09 09:04:09 -05:00

24 lines
417 B
PHP

<?php
namespace App\Livewire\Outfits;
use App\Models\Outfit;
use Livewire\Component;
use Livewire\WithPagination;
class OutfitList extends Component
{
use WithPagination;
public $outfits = [];
public function mount()
{
$this->outfits = Outfit::all();
}
public function render()
{
return view('livewire.outfits.outfit-list', ['outfits' => Outfit::paginate(10),]);
}
}