Backend: remove title from post

main
TZGyn 2 years ago
parent 7bafd6f857
commit 8f4631e5a2
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -17,7 +17,6 @@ class PostFactory extends Factory
public function definition(): array
{
return [
'title' => fake()->sentence,
'description' => collect(fake()->paragraphs)->implode(' '),
'user_id' => 1,
];

@ -14,7 +14,6 @@ return new class extends Migration
Schema::create('posts', function (Blueprint $table) {
$table->id('sequence');
$table->uuid('id');
$table->string('title');
$table->foreignUuid('user_id')->constrained(table: 'users', column: 'id');
$table->longText('description')->nullable(true);
$table->timestamps();

Loading…
Cancel
Save