Skip to content

Commit

Permalink
add app_url for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
martiendt committed May 18, 2020
1 parent 5d53109 commit f0b46d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public function up()
$table->boolean('is_monthly_price_per_user');
$table->unsignedInteger('user_id')->nullable();
$table->boolean('is_active');
// If the plugin host their own app they can put the link here
// The link example https://domain.com
$table->string('app_url')->nullable();
$table->timestamps();
});
}
Expand Down
5 changes: 5 additions & 0 deletions database/seeds/PluginSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function run()
'price_per_user' => 15000,
'is_monthly_price_per_user' => true,
'is_active' => true,
'app_url' => null,
];
array_push($plugins, $plugin);

Expand All @@ -33,6 +34,7 @@ public function run()
'price_per_user' => 15000,
'is_monthly_price_per_user' => true,
'is_active' => false,
'app_url' => null,
];
array_push($plugins, $plugin);

Expand All @@ -44,6 +46,7 @@ public function run()
'price_per_user' => 0,
'is_monthly_price_per_user' => false,
'is_active' => false,
'app_url' => null,
];
array_push($plugins, $plugin);

Expand All @@ -55,6 +58,7 @@ public function run()
'price_per_user' => 0,
'is_monthly_price_per_user' => false,
'is_active' => true,
'app_url' => 'https://stock.point.red',
];
array_push($plugins, $plugin);

Expand All @@ -76,6 +80,7 @@ private function create($plugins)
$plugin->price_per_user = $array['price_per_user'];
$plugin->is_monthly_price_per_user = $array['is_monthly_price_per_user'];
$plugin->is_active = $array['is_active'];
$plugin->app_url = $array['app_url'];
$plugin->save();
}
}
Expand Down

0 comments on commit f0b46d8

Please sign in to comment.