forked from eatvio/eatvio-infra
04 10 2023 snapshot
This commit is contained in:
30
app/View/Components/Profile/BlogPost.php
Normal file
30
app/View/Components/Profile/BlogPost.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Profile;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
use App\Models\BlogPost as Post;
|
||||
use App\Models\User;
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user