Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

florian93's avatar

florian93 liked a comment+100 XP

1mo ago

Build a Forum With Laravel: Ep 12, Showing Comments on a Post

Just incase needed Comment.vue

<template>
    <div class="sm:flex">
        <div class="mb-4 flex-shrink-0 sm:mb-0 sm:mr-4">
            <img :src="comment.user.profile_photo_url" class="h-10 w-10 rounded-full" />
        </div>
        <div>
            <p class="mt-1">{{ comment.body }}</p>
            <span class="first-letter:uppercase block pt-1 text-xs text-gray-600">By {{ comment.user.name }} {{ relativeDate(comment.created_at) }}</span>
        </div>
    </div>
</template>

<script setup>
import {relativeDate} from "@/Utilities/date.js";

defineProps(['comment']);
</script>
florian93's avatar

florian93 liked a comment+100 XP

1mo ago

Build a Forum With Laravel: Ep 8, Pagination and Performance

php artisan make:resource PostResource

Link to the Pagination: https://tailwindui.com/components/application-ui/navigation/pagination

Another recommended Laravel debugging tool called clockwork : https://github.com/itsgoingd/clockwork

florian93's avatar

florian93 liked a comment+100 XP

1mo ago

How to test specific test in Laravel.

I want to test something specifically in Laravel. Let's say, testUserTest(). I want to test only this. How can I do that instead to running test on everything?

florian93's avatar

florian93 liked a comment+100 XP

1mo ago

Forum only not displaying on Firefox 149.0 64 bit

Has anyone checked Firefox? I'm referring to full link:

https://laracasts.com/discuss gives blank screen.

But https://laracasts.com/ works