Database: Seeding

Introduction

Kiaan includes the ability to seed your database with data using seed classes.

All seed classes are stored in the databases\seeds directory.

Create Seed

To generate a seeder, execute the seed:create command.

All seeders generated by the framework will be placed in the databases\seeds directory:

php kiaan seed::create Page

Running Seed

You may execute the seed:run command to seed your database.

php kiaan seed::run Page

Running all seeds

You may execute the seed:all command to all seeds your database.

php kiaan seed::all

Last updated