chore: code styling via pint
This commit is contained in:
@@ -8,9 +8,11 @@ use Livewire\Component;
|
||||
class Blog extends Component
|
||||
{
|
||||
public $postDetail;
|
||||
|
||||
public $category;
|
||||
|
||||
public function mount($slug) {
|
||||
public function mount($slug)
|
||||
{
|
||||
$this->postDetail = \App\Models\Blog::where('slug', $slug)->firstOrFail();
|
||||
$this->category = Category::where('id', $this->postDetail->category_id)->first();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user