mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 11:43:33 +01:00
35 lines
508 B
PHP
35 lines
508 B
PHP
<?php
|
|
|
|
class ComponentTableSeeder extends Seeder {
|
|
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
Eloquent::unguard();
|
|
|
|
$defaultComponents = [
|
|
[
|
|
"name" => "API",
|
|
"description" => "Used by third-parties to connect to us"
|
|
],
|
|
[
|
|
"name" => "Payments",
|
|
"description" => "Backed by Stripe"
|
|
],
|
|
[
|
|
"name" => "Website"
|
|
]
|
|
];
|
|
|
|
Component::truncate();
|
|
|
|
foreach($defaultComponents as $setting) {
|
|
Component::create($setting);
|
|
}
|
|
}
|
|
}
|