Add/edit the award class in Admin #155

This commit is contained in:
Nabeel Shahzad
2018-03-17 12:17:38 -05:00
parent a21e2dd412
commit e9baf4acb5
14 changed files with 195 additions and 86 deletions

View File

@@ -15,7 +15,7 @@ class CreateAwardsTable extends Migration
{
Schema::create('awards', function (Blueprint $table) {
$table->increments('id');
$table->string('title', 50);
$table->string('name');
$table->text('description')->nullable();
$table->text('image_url')->nullable();

View File

@@ -93,6 +93,16 @@ ranks:
auto_approve_manual: 1
auto_promote: 0
awards:
- id: 1
name: Pilot 50 flights
description: When a pilot has 50 flights, give this award
image_url:
ref_class: App\Awards\PilotFlightAwards
ref_class_params: 50
created_at: now
updated_at: now
news:
- id: 1
user_id: 1