forked from eatvio/eatvio-infra
make static analyz for blogPost
This commit is contained in:
@@ -8,27 +8,28 @@ use App\Models\User;
|
||||
use Illuminate\Support\Str;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithPagination;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class ListView extends Component
|
||||
{
|
||||
use WithPagination;
|
||||
|
||||
public $search = '';
|
||||
public string $search = '';
|
||||
|
||||
public $typeFilter = 'all';
|
||||
public string $typeFilter = 'all';
|
||||
|
||||
public $tag = '';
|
||||
public string $tag = '';
|
||||
|
||||
public $author;
|
||||
public User|null $author = null;
|
||||
|
||||
protected $queryString = [
|
||||
protected array $queryString = [
|
||||
'search' => ['except' => ''],
|
||||
'typeFilter' => ['except' => 'all'],
|
||||
'tag' => ['except' => ''],
|
||||
'author' => ['except' => ''],
|
||||
];
|
||||
|
||||
public function render()
|
||||
public function render(): View
|
||||
{
|
||||
if ($this->author) {
|
||||
$author = $this->author;
|
||||
|
||||
Reference in New Issue
Block a user