DeviseSeeder
class DeviseSeeder extends Seeder
Methods
void
run()
Run the database seeds.
StdObject
findOrCreateRow($tableName, $uniqueKeys, $data, $timestamps = true)
We are creating a new page when it does not exist already.
Details
at line 12
void
run()
Run the database seeds.
at line 77
StdObject
findOrCreateRow($tableName, $uniqueKeys, $data, $timestamps = true)
We are creating a new page when it does not exist already.
We use the route name as it should be unique. If an row already exists with the same route name we just ignore the insert. We use similiar logic for new page versions. If a page does not have a page version then it will not be available at it's url because we don't show pages unless there is an active page version