@davidtazy
- Member Since
- Jun 3, 2024
- Lessons Completed
- 127
- Comments Contributed
- 3
- Hours Watched
- 15.78
Recent Activity
Here's what @davidtazy has been up to this past year
-
Replied to Anytime! Awesome, I'm happy to hear you were able to track it...
Perfect! I will definitely use the reflash().
-
Upvoted comment Anytime! Awesome, I'm happy to hear you were able to track it...
-
Upvoted comment Hi davidtazy! Yeah, the toast system should be fully working...
-
Replied to Hi davidtazy! Yeah, the toast system should be fully working...
Thanks to your reply, I understand why it wasn't working.
Inregister.store
, I was redirecting to 'home', but I have middleware that redirects to the 'family.show' route when a user connects for the first time to "jail" him until he fill in the minimal required information.export default class UserHasFamilyMiddleware { async handle({ auth, response }: HttpContext, next: NextFn) { if (auth.user && auth.user.hasNoFamily()) { return response.redirect().toRoute('family.show') } return next() } }
Copied!So I suppose this redirection is consuming the flash message?
To fix it,
register.store
redirects to 'family.show' -> my custom middleware does not interfere -> the flash message appears.Thank you very much!!!
-
Commented on post Creating A Toast Message Manager
Hello,
Sorry if you covered this point in another lesson, but:Once the
POST /register
route is fully implemented, shouldsession.flash('success', …)
work?In my case, it doesn't. When I
console.log
the shared data for the messages field inconfig/inertia.ts
, it’s empty.On the other hand, the
session.flash
in thePOST /login
route is working as expected.Can you tell me if it should work and if I just have a bug in my codebase? If this is expected behavior, could you give me some hints to understand the use case?
And thanks for the awesome work. All these lessons have finally convinced me to learn AdonisJS!
-
Completed lesson Creating A Toast Message Manager
-
Completed lesson Logging In Users & Displaying Exceptions
-
Completed lesson Adding the Remember Me Token
-
Completed lesson Splitting Our Routes Between Auth & Web
-
Completed lesson User Registration with InertiaJS
-
Completed lesson Typing Lucid Models in Inertia with DTOs
-
Completed lesson What Are Some of Inertia's Limitations
-
Completed lesson Cross-Site Request Forgery (CSRF) Protection in InertiaJS
-
Completed lesson Creating A FormInput Vue Component
-
Completed lesson Common useForm Methods & Options
-
Completed lesson The useForm Helper
-
Completed lesson Form Validation & Displaying Errors
-
Completed lesson Inertia Form Basics
-
Completed lesson What Code Can & Can't Be Shared Between AdonisJS & Inertia
-
Completed lesson Specifying Page Titles & Meta Tags
-
Completed lesson Default Layouts & Overwriting the Default Layout
-
Completed lesson Creating A Layout
-
Completed lesson Partial and Lazy Data Loading and Evaluation
-
Completed lesson Global Components and Hydration Mismatch in Action
-
Completed lesson The Link Component and Programmatic Linking
-
Completed lesson Linking Between Pages & Page State Flow
-
Completed lesson Sharing Data from AdonisJS to Vue via Inertia
-
Completed lesson The Flow of Pages and Page Props
-
Completed lesson Server-Side Rendering (SSR) vs Client-Side Rendering (CSR)
-
Upvoted comment Thank you, Tom. It was a great course!
-
Completed lesson Thank You for Watching!
-
Completed lesson Managed Transactions and Syncing Movie Cast Members
-
Completed lesson Posting Objects, Arrays, and an Array of Objects in HTML Forms
-
Completed lesson Using A Wildcard Route Param to Download Storage Images
-
Completed lesson Displaying A User's Profile
-
Completed lesson Uploading and Displaying User Avatars
-
Completed lesson Saving All Or Nothing with Database Transactions
-
Completed lesson Using Dependency Injection to Update A User's Profile
-
Completed lesson Persist Filters Easily with Lucid's Query String Method
-
Completed lesson Defining A Composite Unique Constraint
-
Completed lesson Filtering By User's Watched Status
-
Completed lesson Allowing Users To Toggle A Movie As Watched
-
Completed lesson Listing and Filtering User Watchlist Items
-
Completed lesson Toggling A Movie in an Authenticated User's Watchlist
-
Completed lesson An Alternative Approach to Many-To-Many Relationships
-
Completed lesson Joining SQL Tables To Order By A Related Column
-
Completed lesson Validating Query String Filter Values
-
Completed lesson How To Apply A Dynamic Sort Filter To Your Query
-
Completed lesson Filtering Our List by Movie Status
-
Completed lesson Filtering A Query By Pattern Likeness
-
Completed lesson Uploading Movie Cover Images in our Create or Edit Form
-
Completed lesson How To Use One Form to Create or Edit Movies
-
Completed lesson Allowing Admins to Update Movies and Clear Values
-
Completed lesson Allowing Admins to Create Movies
-
Completed lesson Pagination First, Last, Next, and Previous Buttons
-
Completed lesson How To Paginate Filtered Query Results
-
Completed lesson Creating Our AdonisJS App With InertiaJS
-
Completed lesson What We'll Be Building
-
Completed lesson What Is InertiaJS?
-
Completed lesson Counting Stats for our Admin Dashboard
-
Completed lesson Creating An Admin Layout
-
Completed lesson How to Create and Fix Missing User Profiles in Your Application
-
Completed lesson Creating A Movie List Page
-
Completed lesson Protecting Routes with Auth, Guest, and Admin Middleware
-
Completed lesson Logging In An Existing User
-
Completed lesson Logging Out An Authenticated User
-
Completed lesson Authenticating A Newly Registered User
-
Completed lesson The Flow of Middleware
-
Completed lesson How To Create A Custom VineJS Validation Rule
-
Completed lesson Creating A Login Form and Validator
-
Completed lesson Creating An EdgeJS Form Input Component
-
Completed lesson Reusing Old Form Values After A Validation Error
-
Completed lesson Displaying Validation Errors and Validating from our Request
-
Completed lesson Validating Form Data with VineJS
-
Completed lesson Accepting Form Data
-
Completed lesson How To Query, Sort, and Filter by Pivot Table Data
-
Completed lesson How To Create Factory Relationships from a Pool of Data
-
Completed lesson A Deep Dive Into Relationship CRUD with Models
-
Completed lesson Many-To-Many Model Factory Relationships
-
Completed lesson Defining Many-To-Many Relationships and Pivot Columns
-
Completed lesson Using Eager and Lazy Loading to Load A Movie's Writer and Director
-
Completed lesson Listing and Counting a Writer's Movies
-
Completed lesson Listing A Director's Movies with Relationship Existence Queries
-
Completed lesson Seeding Movies with One to Many Model Factory Relationships
-
Completed lesson Defining One to Many Relationships with Lucid Models
-
Completed lesson Cascading and Deleting Model Relationships
-
Completed lesson Querying Relationships and Eager Vs Lazy Loading
-
Completed lesson Model Factory Relationships
-
Completed lesson Defining One to One Relationships Within Lucid Models
-
Completed lesson Generating A Unique Movie Slug With Model Hooks
-
Completed lesson Querying Recently Released and Coming Soon Movies
-
Completed lesson Tapping into Model Factory States
-
Completed lesson Reusable Query Statements with Model Query Scopes
-
Completed lesson SQL Parameters and Injection Protection
-
Completed lesson Adding A Profile Model, Migration, Factory, and Controller
-
Completed lesson Unmapped and Computed Model Properties
-
Completed lesson Querying Our Movies with the Query Builder
-
Completed lesson Stubbing Fake Data with Model Factories
-
Completed lesson Defining Required Data with Seeders
-
Completed lesson The Basics of CRUD
-
Completed lesson Defining Our Models
-
Completed lesson Introducing Lucid Models
-
Completed lesson Understanding our Database Schema
-
Completed lesson Configuring Lucid and our Database Connection
-
Completed lesson Easy SVG Icons with Edge Iconify
-
Completed lesson HTTP Method Spoofing HTML Forms
-
Completed lesson Form Basics and CSRF Protection
-
Completed lesson Share vs Global Data Flow
-
Completed lesson State vs Share Data Flow
-
Completed lesson Use Slots To Make A Button Component
-
Completed lesson Component Tags, State, and Props
-
Completed lesson Making A Reusable Movie Card Component
-
Completed lesson EdgeJS Templating Basics
-
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
-
Completed lesson Improved Caching with Redis
-
Completed lesson Singleton Services and the Idea of Caching
-
Completed lesson Defining A Structure for our Movie using Models
-
Completed lesson Cleaning Up Routes with Controllers
-
Completed lesson Extracting Reusable Code with Services
-
Completed lesson Reading and Supporting Markdown Content
-
Completed lesson Project Structure
-
Completed lesson What We'll Need Before We Begin
-
Completed lesson Setting Up Tailwind CSS
-
Completed lesson Vite and Our Assets
-
Completed lesson Validating Route Parameters
-
Completed lesson Loading A Movie Using Route Parameters
-
Completed lesson Linking Between Routes
-
Completed lesson Rendering a View for a Route
-
Completed lesson Creating A New AdonisJS 6 Project
-
Completed lesson Routes and How To Create Them
-
Completed lesson VS Code Extensions and Configuration
-
Account created Welcome to Adocasts, @davidtazy!