class SettingsSeeder extends Seeder (View source)

Seeder for application settings.

Inserts default settings defined in the settings.php configuration file into the database if they do not already exist.

Methods

void
run()

Run the seeder.

Details

void run()

Run the seeder.

For each configuration defined in config('settings'), checks if a corresponding record exists in the database. If it does not exist, creates a new setting using the default value defined in the configuration.

Return Value

void