Act Sem 16-23 Jun - Shorter - Pre-render content - Export Epub/PDF to All - Store course/book

Video thumbnail

Welcome back to another week! I'm sharing all the updates that happened from June 16th to June 23rd, which is the current date.

As I mentioned, I'm changing the format a bit. I'm now uploading fewer long videos on YouTube, and instead, more short videos on multiple platforms, including TikTok, Instagram, Twitter (now X), BlueSky, Threads, and of course, YouTube itself.

YouTube/Blog

Content Prerendering in Books and Posts
I uploaded a video that follows the same theme as the previous one, where I talked about how, finally (for goodness' sake!), I created beautiful content for books. I'm referring to the visual format, something I call "content prerendering": that is, preloading it, formatting it as desired, and then presenting it.

Pre Renderizado de contenido HTML, clave para generar todo tipo de contenido - https://youtu.be/Hb5hTYSGYoc

I'm using this for both books and posts, optimizing posts and speed, something Google values ​​highly.

Opinion: Working More than 60 Hours
In another video, I shared my opinion on how working more than 60 hours a week is practically modern slavery. If you do the math, that's equivalent to 12 hours a day, leaving just 8 for sleep and another 4 spent on commuting, eating, taking a bathroom break, etc. In short: you're not getting any rest.

Trabajo de 60+ Horas La esclavitud moderna... - https://youtu.be/vWugMIhKSpU

Export Books to EPUB and PDF (And More)
I also posted a video explaining how I managed to export my EPUB and PDF books to other platforms. In summary:

Export your EPUB/PDF book to all platforms: Google/Apple Book, Kindle, Leanpub, and Gumroad - https://youtu.be/x7y80bnNFIw

Almost all platforms are easy to use, except for Kindle, where I used a little-known tool called Kindle Preview.

Of course, the EPUB file must be properly formatted; otherwise, errors will occur when exporting.

Physical Problem with Laptop (M2 Port Stripped)
A more personal, but useful, video: I upgraded my laptop's storage (from 512GB to more) and accidentally stripped the M2 screw. I struggled for months, buying tools that didn't work... until a pair of simple pliers saved my day.

Un par de Trucos para sacar un tornillo chiquito Barridos o Gastados M2 de una laptop - https://youtu.be/xA2qWSOWGVo

I'm sharing several practical tips that might help you if you ever find yourself in a similar situation with a stripped screw.

Is 16GB of RAM enough for Unreal Engine?
I also talked about whether 16GB of RAM is enough to use Unreal Engine on Windows. The short answer is: yes, it works fine, at least for relatively simple levels. I tested it on the same laptop with the stripped screw.

¿Son suficientes 16 de Ram para emplear Unreal Engine en Windows? - https://youtu.be/Bz2vtxd-K_Y

Although the official documentation mentions up to 48GB, it's possible to start with 16GB and work without problems.

Livewire: Real Components
Another video that complements a previous one about Livewire and real components. In this case, I add a detail I didn't mention before: these components can be executed directly when the view loads, whether imported into Blade or called from another component.

Lo segundo mejor de Laravel Livewire, sus componentes REALES - https://youtu.be/ULh4w03HFmY

Unlike Inertia.js, where server-side logic is only executed if you make an explicit request, Livewire allows for server-side reactive logic automatically.

Online Store Progress
I'm now in the final stretch of the online store course/book. I'm starting to upload the migrations and introductions to the YouTube channel, as well as some blog posts:

Demo: Introducción Sección Laravel Livewire Shopping - Migraciones 01 - https://youtu.be/zWjdaetDuGc

Course and Book - Laravel 12 Livewire 3 - Online Store

I defined a product type called Book.

I also defined a generic product, which can include desktops, courses, etc.

I did this so you can decide your preferred structure, whether reusing an existing one or creating more generic products.

Additionally, the payment gateway we implemented is very flexible, so integration was fairly easy with both types.

Customization and Visual Differences
In the visual part, we're looking at how to change designs depending on the product. For example, the design of the desktops is different from that of the shoes or books. This isn't about following a single design, but rather showing you how I customized each one, focusing on structure and image.

Middleware and User Roles
As in the original course, I used simple middleware without resorting to Spatie. In small applications, I don't see this as necessary. For role management, I used Tinker to assign them manually.

Log Management and Payments
I talked about using logs to record payment gateway errors. I also showed how the user's purchases are displayed in their personal area.


Tienda: Producto

  1. Introducción

  2. Store: Reutilizar stripeCreateSession para generar sessionID

    1. Migramos la generación del session ID de Stripe.

  3. Store: Filtros por tipo

    1. Vamos a crear el filtro por tipo producto para el listado de la tienda.

  4. Store: Modificar ruta detalle

    1. Vamos a modificar la ruta de detalle para agregar el tipo.

  5. Store: Cambios en el listado de producto por tipo

    1. Vamos a agregar más información en el listado de productos si tenemos un tipo establecido.

Varios cambios

  1. Vistas con diseños diferentes: Listado

    1. Vamos a personalizar el listado por tipo producto de manera opcional.

  2. Vistas con diseños diferentes: Detalle

    1. Vamos a personalizar el detalle por tipo producto de manera opcional.

  3. Roles de usuario admin regular: Explicación y estructura

    1. Vamos a explicar el sistema de roles de permisos que vamos a usar y generar la migración.

  4. Roles de usuario admin regular: Middleware

    1. Creamos el middleware y asociados para proteger el módulo dashboard por usuario autenticado.

  5. Actualizar rol de usuario con tinker

    1. Usamos tinker para actualizar el rol del usuario.

  6. Modularizar rutas con funciones

    1. Vamos a modularizar nuestras rutas mediante funciones.

  7. Errores log pagos u otros

    1. Vamos a definir un log para un posible error de PayPal y hablar sobre este esquema.

  8. Pagos en dashboard: Listado

    1. Vamos a crear el listado de pagos en el dashboard.

  9. Pagos en dashboard: Traza

    1. Vamos a mostrar la traza del pago en el listado mediante un modal.

I agree to receive announcements of interest about this Blog.

YouTube - Pre-render content - Export Epub/PDF to all platforms - Work on 60+ - The best of Livewire Course/Book - Purchase generic products, payment listings, payment logs

| 👤 Andrés Cruz

🇪🇸 En español