Compare commits
No commits in common. "5234d880a738023db313812e8a7c4365932dd014" and "03f8cf9c397061a683938b14299933aa054008d0" have entirely different histories.
5234d880a7
...
03f8cf9c39
|
|
@ -23,7 +23,6 @@ class FriendLinkResource extends JsonResource
|
||||||
'is_recommend' => $this->is_recommend,
|
'is_recommend' => $this->is_recommend,
|
||||||
'is_show' => $this->is_show,
|
'is_show' => $this->is_show,
|
||||||
'created_at' => strtotime($this->created_at) ?? 0, //录入时间
|
'created_at' => strtotime($this->created_at) ?? 0, //录入时间
|
||||||
'is_iframe' => $this->is_iframe,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ class FriendLink extends Model
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name', 'type', 'content', 'sort', 'is_recommend', 'is_show',
|
'name', 'type', 'content', 'sort', 'is_recommend', 'is_show',
|
||||||
'is_iframe',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
public static function typeMap()
|
public static function typeMap()
|
||||||
|
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
|
|
||||||
return new class extends Migration
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the migrations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function up()
|
|
||||||
{
|
|
||||||
Schema::table('friend_links', function (Blueprint $table) {
|
|
||||||
//
|
|
||||||
$table->unsignedInteger('is_iframe')->default(0)->comment('是否iframe打开');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reverse the migrations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function down()
|
|
||||||
{
|
|
||||||
Schema::table('friend_links', function (Blueprint $table) {
|
|
||||||
//
|
|
||||||
$table->dropColumn('is_iframe');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue