Difference between lucid serializer and database serializer


#1

Hello all,
I’m new to adonis and I’m wondering while installing auth package. It’s asking for serializer, which one you want to use lucid or database. I am curious to know what the exact difference between these two.
Thanks


#2

Lucid serializer uses Lucid models and Database serializer uses Database query builder to query the database.

When you define a model, then auth package will find the table name user primary key details from the model, otherwise you need to define them with database serializer


#3

thanks buddy…