Ryan
@n2zb
Strasbourg, FRANCE
- Member Since
- Apr 29, 2024
- Lessons Completed
- 58
- Comments Contributed
- 6
- Hours Watched
- 8.19
Recent Activity
Here's what @n2zb has been up to this past 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
table
property 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 oftable
in 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
qs
which 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"
But it might be nicer for DX to have a helper to do something like :
action="{{ route('redis.flush').method('DELETE') }}"
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
-
Completed lesson EdgeJS Templating Basics
-
Completed lesson Making A Reusable Movie Card Component
-
Completed lesson Querying Our Movies with the Query Builder
-
Completed lesson Cascading and Deleting Model Relationships
-
Completed lesson How To Paginate Filtered Query Results
-
Completed lesson Defining One to One Relationships Within Lucid Models
-
Completed lesson Tapping into Model Factory States
-
Completed lesson The Flow of Migrations
-
Completed lesson Reusable Query Statements with Model Query Scopes
-
Completed lesson Introducing Lucid Models
-
Completed lesson Querying Relationships and Eager Vs Lazy Loading
-
Completed lesson Model Factory Relationships
-
Completed lesson Creating A Movie List Page
-
Completed lesson Protecting Routes with Auth, Guest, and Admin Middleware
-
Completed lesson Generating A Unique Movie Slug With Model Hooks
-
Completed lesson Querying Recently Released and Coming Soon Movies
-
Completed lesson HTTP Method Spoofing HTML Forms
-
Completed lesson Listing Movies from their Markdown Files
-
Completed lesson Reading and Supporting Markdown Content
-
Completed lesson Defining A Structure for our Movie using Models
-
Completed lesson Cleaning Up Routes with Controllers
-
Completed lesson Validating Route Parameters
-
Completed lesson Vite and Our Assets
-
Completed lesson Loading A Movie Using Route Parameters
-
Completed lesson Linking Between Routes
-
Completed lesson Rendering a View for a Route
-
Completed lesson Routes and How To Create Them
-
Completed lesson VS Code Extensions and Configuration
-
Completed lesson Project Structure
-
Account created Welcome to Adocasts, @n2zb!