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

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

Programming Terms Explained: Ep 11, What is a Frontend and Backend?

@khaled-sayed Yes, a typical Laravel app is a monolith. It's a single codebase that has views, controllers, services, queues, etc. It's one big codebase that is deployed all together.

Microservices is about breaking the server into multiple independent and smaller services. For example: a user service to just manage users, a service for billing, and yet another service just for reporting. They're developed individually (and sometimes in different languages) and deployed separately.

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

Livewire 3 From Scratch: Ep 10, Navigating with Navigate

@ctrlaltdelme With Navigate, Livewire's JavaScript handles the click event before the browser can send the request to the server. So, the server still receives the request, but it was sent via fetch() as opposed to typical browser navigation.

As for security: it's still Laravel. Routes are still protected with the auth middleware.

jwmcpeak's avatar

jwmcpeak liked a comment+100 XP

1mo ago

Livewire 3 From Scratch: Ep 11, Iterating Over Collections

Thank you for this wonderful series on livewire.

I am happy to be taking this training course, especially with one of the best trainers on Laracasts.

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

Livewire 3 From Scratch: Ep 11, Iterating Over Collections

@acandael @Daniel Gauthier You can still use controllers because it's still Laravel. If you don't need the interactivity that Livewire gives you for a set of pages/URLs, then use controllers as usual. When you want the interactivity that Livewire provides, then use a component.

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

Livewire 3 From Scratch: Ep 11, Iterating Over Collections

@ailyye It's a good question with, at least from me, not a good answer. I don't like Angular.

jwmcpeak's avatar

jwmcpeak liked a comment+100 XP

1mo ago

The Batteries-Included AI Toolkit : Ep 4, Demoing Our Chat Agent

Perhaps it'd be worth completing the messages() method in the agent in the previous video otherwise this one won't work

Something along these lines


    public function messages(): iterable
    {
        return TicketMessage::where('ticket_id', $this->ticketId)
            ->get()
            ->map(function (TicketMessage $message) {
                $role = is_null($message->user_id)
                    ? Laravel\Ai\Messages\MessageRole::Assistant
                    : Laravel\Ai\Messages\MessageRole::User;

                return new Laravel\Ai\Messages\Message($role, $message->body);
            })->toArray();
    }

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

The Batteries-Included AI Toolkit : Ep 4, Demoing Our Chat Agent

@mmonari Thanks. I tend to teach how I like to learn. As I learn something new, I'm more interested in the concepts because I can apply them however/whenever needed.

jwmcpeak's avatar

jwmcpeak liked a comment+100 XP

1mo ago

The Batteries-Included AI Toolkit : Ep 4, Demoing Our Chat Agent

Hello Jeremy, Just some quick feedback. I gotta say, I love this "vanilla" way of simply writing code to pass on ideas and concepts. Without interference from auto completion tools while listening to and watching you in action, this makes so much easier to assimilate it all.

While you probably should've extracted functionalities to services and used Livewire, It is just as nice to watch it being built like that 😄 thanks so much for this great series!

jwmcpeak's avatar

jwmcpeak liked a comment+100 XP

1mo ago

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

JavaScript Essentials for PHP Developers : Ep 2, Data Types

@Antimated Yep! I forgot to mention backticks here, but we use them later in the series.

jwmcpeak's avatar

jwmcpeak wrote a comment+100 XP

1mo ago

JavaScript Essentials for PHP Developers : Ep 27, Real Custom Events

@connor1231 It's separation of concerns. The benefit of emitting an event is that the game doesn't have to worry about, or know how to, display a message.

jwmcpeak's avatar

jwmcpeak liked a comment+100 XP

1mo ago

JavaScript Essentials for PHP Developers : Ep 15, Creating Elements And Content

Going to learn Vue later, and definitely agree with Jeremy regards to learning the fundamentals