chore: code refactor via rector

This commit is contained in:
idevakk
2025-11-14 02:01:01 -08:00
parent 90ab79b3a2
commit ae795880ed
148 changed files with 1520 additions and 1486 deletions

View File

@@ -11,10 +11,10 @@ class Blog extends Component
public $category;
public function mount($slug)
public function mount($slug): void
{
$this->postDetail = \App\Models\Blog::where('slug', $slug)->firstOrFail();
$this->category = Category::where('id', $this->postDetail->category_id)->first();
$this->postDetail = \App\Models\Blog::query()->where('slug', $slug)->firstOrFail();
$this->category = Category::query()->where('id', $this->postDetail->category_id)->first();
}
public function render()