Rename field to image_link and add field to edit #111
This commit is contained in:
@@ -270,7 +270,7 @@ class Importer
|
||||
|
||||
$attrs = [
|
||||
'name' => $row->rank,
|
||||
'link' => $row->rankimage,
|
||||
'image_link' => $row->rankimage,
|
||||
'hours' => $row->minhours,
|
||||
];
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class CreateRanksTable extends Migration
|
||||
Schema::create('ranks', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name', 50);
|
||||
$table->string('link')->nullable();
|
||||
$table->string('image_link')->nullable();
|
||||
$table->unsignedInteger('hours')->default(0);
|
||||
$table->boolean('auto_approve_acars')->default(false);
|
||||
$table->boolean('auto_approve_manual')->default(false);
|
||||
|
||||
@@ -13,11 +13,11 @@ class Rank extends BaseModel
|
||||
|
||||
public $fillable = [
|
||||
'name',
|
||||
'link',
|
||||
'hours',
|
||||
'image_link',
|
||||
'auto_approve_acars',
|
||||
'auto_approve_manual',
|
||||
'auto_promote'
|
||||
'auto_promote',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
||||
Reference in New Issue
Block a user