
@michel-mbili
- Member Since
- Oct 23, 2024
- Lessons Completed
- 36
- Comments Contributed
- 3
- Hours Watched
- 5.77
Recent Activity
Here's what @michel-mbili has been up to this past year
-
Started discussion Inertia + React - Change URL but open modal (No full navigation)
-
Completed lesson Goal of this Series
-
Upvoted comment Awesome, glad to hear all is working now!Yep, that'll do it!...
-
Replied to I'm guessing you're probably using v3 or later of the AdonisJS...
Thank you so much!
Yeah I'm using"@adonisjs/inertia": "^3.1.0"
It all works now. For the user I didn't useauth middleware
on my route that's why I was not getting theuser
-
Replied to I've undefined for user and errors. here is what I've done in...
// When I do this, I get the errors sharedData: { greetings: 'bonjour', user: (ctx) => { const errors = ctx.session.flashMessages.get('errors') console.log({ ctx: errors }) return ctx.auth.user }, },
Copied! -
Replied to Hi Michel,Are you sure you have an authenticated user and/or...
I've
undefined
foruser
anderrors
.
here is what I've done in my signin_controllertry{} catch (error) { if (error instanceof errors.E_INVALID_CREDENTIALS) { session.flash('errors', { form: 'Invalid credentials' }) return response.redirect().back() } // Handle other errors session.flash('errors', { form: 'An error occurred during login' }) return response.redirect().back() }
Copied!Maybe it can help understand what's going on
-
Started discussion SharedData Problem - Inertia + React
-
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 Refreshing Partial Page Data
-
Completed lesson Removing an Organization User
-
Completed lesson Canceling an Organization Invite
-
Completed lesson Adding the Organization Invite User Interface
-
Completed lesson Accepting an Organization Invitation
-
Completed lesson Sending an Invitation to Join Our Organization
-
Completed lesson Listing Current Organization Members
-
Completed lesson Model Query Builder Macros in AdonisJS 6
-
Completed lesson How To Redirect Back to the Previous Page After Login with AdonisJS
-
Completed lesson Sharing Data from AdonisJS to Vue via Inertia
-
Completed lesson The Flow of Pages and Page Props
-
Completed lesson Setting Up TailwindCSS, Shadcn-Vue, and Automatic Component Imports
-
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 Querying Our Movies with the Query Builder
-
Completed lesson Stubbing Fake Data with Model Factories
-
Completed lesson Defining Our Models
-
Completed lesson Introducing Lucid Models
-
Completed lesson The Flow of Migrations
-
Completed lesson Introducing and Defining Database Migrations
-
Completed lesson Understanding our Database Schema
-
Completed lesson Configuring Lucid and our Database Connection
-
Completed lesson Logging In An Existing User
-
Completed lesson Checking For and Populating an Authenticated User
-
Completed lesson Authenticating A Newly Registered User
-
Completed lesson The Flow of Middleware
-
Completed lesson Protecting Routes with Auth, Guest, and Admin Middleware
-
Completed lesson What We'll Be Building
-
Account created Welcome to Adocasts, @michel-mbili!