'type' => 'rich',
'url' => url('/tech/'.rawurlencode($tech->name)),
];
- if ($tech->image) {
+ if ($tech->gif) {
+ $properties['image'] = [
+ 'url' => url($tech->gif),
+ ];
+ } else if ($tech->image) {
$properties['image'] = [
'url' => url($tech->image),
];
--- /dev/null
+<?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('techniques', function(Blueprint $table) {
+ $table->string('gif')->nullable()->default(null);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::table('techniques', function(Blueprint $table) {
+ $table->dropColumn('gif');
+ });
+ }
+};