diff --git a/app/Livewire/LikePost.php b/app/Livewire/LikePost.php new file mode 100644 index 0000000..421d9ee --- /dev/null +++ b/app/Livewire/LikePost.php @@ -0,0 +1,13 @@ + @@ -62,6 +64,8 @@ DevStagram - {{ date('Y') }} All rights reserved. + @livewireScripts + diff --git a/resources/views/livewire/like-post.blade.php b/resources/views/livewire/like-post.blade.php new file mode 100644 index 0000000..2d26220 --- /dev/null +++ b/resources/views/livewire/like-post.blade.php @@ -0,0 +1,3 @@ +
+

Hello, World!

+
diff --git a/resources/views/posts/show.blade.php b/resources/views/posts/show.blade.php index d3659e4..bd729c8 100644 --- a/resources/views/posts/show.blade.php +++ b/resources/views/posts/show.blade.php @@ -12,6 +12,8 @@
@auth + + @if ($post->checkLike(auth()->user()))
@csrf