make static analyz for blogPost

This commit is contained in:
2024-01-10 14:42:34 +03:00
parent 93ca684f67
commit fb3670a549
14 changed files with 120 additions and 69 deletions

View File

@@ -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;