Update week 9-16 Jun - Shorter - Functions and routes - AI correct use - Store course/book
Welcome to another week! I'm back to commenting on the updates on both the YouTube channel and the blog, corresponding to the week of April 9th through April 16th, which is the current date.
YouTube/Blog
Fewer videos, a new approach
The first thing I want to say is that I'm going to upload a few fewer videos to my YouTube channel. I had a lot of videos backed up, and I've decided to change the strategy a bit, exporting more content to the vertical format, which has worked better for me lately. That's why you'll see less long-form content on the channel.
As for vertical content, I uploaded short videos related to Laravel. Sometimes these videos also have extended versions, like the ones I'll discuss below. Plus, everything usually has its equivalent in written posts.
Laravel: Route Modularization
One of last week's posts was about how to modularize routes using functions. This applies when you have many routes, but not an excessive number (in which case, it would be best to use separate files). If you have, for example, a blog, a dashboard, etc., you can create functions that group related routes together, making it more modular and scalable:
Modularizar Rutas mediante funciones #Laravel - VENTAJAS! - https://youtu.be/3RVLO5IAqrw
Migration Mistakes and Working Solo
I also mentioned some mistakes I had while managing my migrations. As you know, I'm a solo developer, so I've adapted. For example, when I want to modify a table, I don't create a new migration, but instead directly modify the existing one and then generate the SQL manually from the manager.
El error más tonto al gestionar mis migraciones en Laravel... - https://youtu.be/CByI_hk7_0g
AI: Correct Use vs. Incorrect Use
Another example I mentioned is what I consider the correct use of AI. I use the text from my own videos, automatically generated, and then ask ChatGPT to improve them by adding titles, commas, periods, etc., without losing the essence. It's different from saying "make me a post about X." That, for me, is the difference between using AI well or poorly: you must have the base content, or at least the necessary knowledge to guide it.
Como usar correctamente la IA vs incorrecto, Opinión y Ejemplo - https://youtu.be/Lh6v07HPD94
Laravel Livewire: ventajas reales de sus componentes
Otro video que publiqué trata sobre lo que más me gusta de Laravel Livewire.
Primero, el CLI (Wi Cliit), que ya comenté antes, y segundo, el uso de componentes reales.
A diferencia de Inertia, donde los componentes son solo vistas, en Livewire sí tenemos componentes que pueden ejecutar lógica en el servidor. Esto facilita decidir si usar Livewire o Inertia dependiendo del sistema que desees construir.
Lo segundo mejor de Laravel Livewire, sus componentes REALES - https://youtu.be/SZdi7pA5Hr0
Google Play: Internal Testing and Payment Testing
I also published a video on how to perform internal testing on Google Play and the steps for testing, especially if you need to test Google's payment gateway.
To test these payments, you need to emulate them on a real device, and to avoid actual billing, you must use Google Play's internal testing system. That's why the two topics go hand in hand.
Pruebas Internas en la Google Play (Android) y Pasos para el Testing de los pagos - https://youtu.be/rWd3-VhAxx8
Online Store Course/Book with Laravel Livewire
Moving on to updates to the online store, I've been working on two blocks:
Completing the "Book" module
I've already finished the store for the "Book" product type.
I mainly worked on improving the payment gateway, finalizing the integration with Stripe and PayPal.
Tienda: Libros
Introducción
Terminar la implementación con Stripe: Parte 2
Vamos a terminar la implementación realizada en la clase anterior.
Módulo de usuario para ver los pagos realizados
Vamos a mostrar la implementación de un módulo para pagos realizados.
Extra: Pagando...
Definimos un loading al darle click al boton de PayPal.
Extra: Componente de componentes para la pasarela de pago
Creamos un componente padre para Laravel y Alpine.
Extra: Pagando... Adaptar Stripe
Vamos a implementar los cambios en la pasarela de pago de Stripe para poder mostrar el loading al momento de realizar el pago.
Tienda: Producto
Migración y modelo
Presentamos la migración y el modelo tipo producto.
Dashboard: CRUD
Presentamos el CRUD para el producto y el tipo.
Acepto recibir anuncios de interes sobre este Blog.
YouTube: More vertical content - Laravel functions and routes - Correct AI usage - Real Livewire components - Internal testing on Google Play Course: Booklist payment gateway - Stripe PayPal - Generic product entity
- Andrés Cruz