Hi Eric, your tutorial series are great - many on topics I am pursuing. Thanks!
I followed this one and get an error when calling the PostsFactory to seed the db from the create-posts.
ReferenceError
PostFactory is not defined - on start/routes.ts
I made sure to follow steps and double checked - it seems that PostsFactory is not available to the scope of the running app - is this something that the ioc should be taking care of?
Do I need to explicitly import PostsFactory anywhere?
Hi , kirschd . I have a little question for you.
if we dont want to use migrations and just want to map model with databse then how will we do that ? if you have a code in git hub repo then please give me the link
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Eric, your tutorial series are great - many on topics I am pursuing. Thanks!
I followed this one and get an error when calling the PostsFactory to seed the db from the create-posts.
ReferenceError
PostFactory is not defined - on start/routes.ts
I made sure to follow steps and double checked - it seems that PostsFactory is not available to the scope of the running app - is this something that the ioc should be taking care of?
Do I need to explicitly import PostsFactory anywhere?
Thanks
Not that familiar with ioc on Adonis so I just did import explicitly at routes.ts and this worked for me:
import Route from '@ioc:Adonis/Core/Route'
import {PostFactory} from 'Database/Factories/index'
Hi , kirschd . I have a little question for you.
if we dont want to use migrations and just want to map model with databse then how will we do that ? if you have a code in git hub repo then please give me the link