fix: user can update bio info
This commit is contained in:
@@ -32,6 +32,8 @@ class ArtistFactory extends Factory
|
||||
'avatar' => fake()->imageUrl(512, 512),
|
||||
'header' => fake()->imageUrl(270, 185),
|
||||
'location' => fake()->city() . ', ' . fake()->state(),
|
||||
'alby' => null,
|
||||
'naasocial' => null,
|
||||
'website' => rand(0, 1) ? fake()->url : null,
|
||||
'bio' => fake()->paragraphs(rand(1, 3), true),
|
||||
];
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('artists', function (Blueprint $table) {
|
||||
$table->string('alby')->nullable()->after('location');
|
||||
$table->string('nasocial')->nullable()->after('location');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('artists', function (Blueprint $table) {
|
||||
$table->dropColumn('alby');
|
||||
$table->dropColumn('nasocial');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user