Files
HeimerdingerLoL/app/View/Components/Posts/Listposts.php
Rico van Zelst 079cca3751 refactor: Remove unused imports and dependencies
This commit removes unused imports and dependencies in the Listposts component, improving code cleanliness and reducing potential confusion.
2023-12-12 14:41:49 +01:00

20 lines
388 B
PHP

<?php
namespace App\View\Components\Posts;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Listposts extends Component
{
public function __construct(public LengthAwarePaginator $posts)
{
}
public function render(): View
{
return view('components.posts.listposts');
}
}