forked from eatvio/eatvio-infra
30 lines
577 B
PHP
30 lines
577 B
PHP
<?php
|
|
|
|
namespace App\View\Components\Profile;
|
|
|
|
use App\Models\BlogPost as Post;
|
|
use App\Models\User;
|
|
use Illuminate\View\Component;
|
|
|
|
class BlogPost extends Component
|
|
{
|
|
/**
|
|
* Create a new component instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(public Post $post, public User $user)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Get the view / contents that represent the component.
|
|
*
|
|
* @return \Illuminate\Contracts\View\View|\Closure|string
|
|
*/
|
|
public function render()
|
|
{
|
|
return view('components.profile.blog-post');
|
|
}
|
|
}
|