analysators added

This commit is contained in:
Anatoliy Poloz
2023-12-18 14:36:32 +03:00
parent e9c4647f26
commit 92a54106ef
166 changed files with 32767 additions and 1222 deletions

View File

@@ -2,12 +2,13 @@
namespace App\Livewire\BlogPost;
use Livewire\Component;
use App\Models\BlogPost;
use Livewire\Component;
class Like extends Component
{
public BlogPost $blogPost;
public $isIconOnly = false;
public function mount(BlogPost $blogPost)
@@ -27,7 +28,7 @@ class Like extends Component
} elseif (auth()->user()) {
$this->blogPost->likes()->create([
'user_id' => auth()->id(),
'blog_post_id' => $this->blogPost->id
'blog_post_id' => $this->blogPost->id,
]);
}