Recent Activity
Here's what @n2zb has been up to this past year
- 
        
Anniversary Thanks for being an Acocasts member for 1 year
 - 
        
Commented on post Defining Many-To-Many Relationships and Pivot Columns
Hi Tom, the project I'm working on to learn how to use Adonis is a Reddit-like project. I'd like to define a "many to many" relationship to manage the registration of users to a subreddit. So I have a pivot that records subscriptions: subreddit id, id who joined, subscription date, and the member's local role (administrator, moderator, …). Since the additional columns (in this case, the role) are managed by the
pivotColums, I'm wondering how to preload the role since we can't define the relation - 
        
Completed lesson Defining Many-To-Many Relationships and Pivot Columns
 - 
        
Completed lesson Defining One to Many Relationships with Lucid Models
 - 
        
Upvoted comment Hey cbernard! Currently, there isn't a way to do polymorphic...
 - 
        
Completed lesson Server-Side Rendering (SSR) vs Client-Side Rendering (CSR)
 - 
        
Completed lesson Creating Our AdonisJS App With InertiaJS
 - 
        
Completed lesson What Is InertiaJS?
 - 
        
Completed lesson Getting Started, Installing AlpineJS and TailwindCSS
 - 
        
Commented on post Defining Our Models
Hello, Tom,
I see in the LucidModel interface that there is a
tableproperty which allows you to tell the model which table to use. For my project (Bible application) I have several tables (different Bibles) with exactly the same structure. A single model is therefore sufficient, as it is suitable for all these tables. Is it good practice to change the value oftablein my controller/services? For example, by writingVerse.table = ...when it's needed. - 
        
Completed lesson Defining Our Models
 - 
        
Upvoted comment Hi n2zb! Yeah, absolutely! I haven't done it myself, but it ...
 - 
        
Completed lesson What We'll Be Building
 - 
        
Completed lesson Understanding our Database Schema
 - 
        
Commented on post Configuring Lucid and our Database Connection
Hi Tom,
I usually work with SQLite or Postgres, but I was wondering if there was a way to work with a NoSQL solution (like Firebase) on Adonis since Lucid seems to be a SQL-only builder? - 
        
Completed lesson Creating A New AdonisJS 6 Project
 - 
        
Completed lesson What We'll Need Before We Begin
 - 
        
Completed lesson Introducing AdonisJS
 - 
        
Completed lesson Configuring Lucid and our Database Connection
 - 
        
Completed lesson Easy SVG Icons with Edge Iconify
 - 
        
Commented on post HTTP Method Spoofing HTML Forms
Is this really the only clean way to tell Edge to pass this request with a parameter to specify the method? I mean: add an empty object, then an object containing a property
qswhich is itself an object containing the method name... It's a bit verbose... or is it intentional?In a shorter way :
action="{{ route('redis.flush') }}?_method=DELETE"Copied!But it might be nicer for DX to have a helper to do something like :
action="{{ route('redis.flush').method('DELETE') }}"Copied!What do you think about this ?
 - 
        
Completed lesson Form Basics and CSRF Protection
 - 
        
Completed lesson Share vs Global Data Flow
 - 
        
Completed lesson State vs Share Data Flow
 - 
        
Completed lesson Extracting A Layout Component
 - 
        
Completed lesson Use Slots To Make A Button Component
 - 
        
Completed lesson Component Tags, State, and Props
 - 
        
Completed lesson HTML Attribute and Class Utilities
 - 
        
Upvoted comment Hi n2zb! Imports using the @ character, like @adonisjs/core ...
 - 
        
Upvoted comment Hi n2zb! We started our CacheService without using Redis, but...
 - 
        
Commented on post Easy Imports with NodeJS Subpath Imports
Hello Tom, what's the difference between imports using subpath starting with
#and another starting with@? - 
        
Completed lesson Easy Imports with NodeJS Subpath Imports
 - 
        
Completed lesson Quick Start Apps with Custom Starter Kits
 - 
        
Completed lesson Deleting Items and Flushing our Redis Cache
 - 
        
Commented on post Improved Caching with Redis
Hi Tom, why do you define an overlay on redis with the CacheService class? I don't understand why you don't use the methods provided by redis directly. Is it an abstraction layer that preserves the name of the methods independently of the service used? A bit like what you explained with the aliases for routes?
 - 
        
Completed lesson Improved Caching with Redis
 - 
        
Completed lesson Environment Variables and their Validation
 - 
        
Completed lesson Singleton Services and the Idea of Caching
 - 
        
Upvoted comment Hi Luiz! Though they look similar and are traditionally both...
 - 
        
Completed lesson Extracting Reusable Code with Services
 - 
        
Completed lesson Setting Up Tailwind CSS