Switch bio to be stored in database
This commit is contained in:
parent
f51a740858
commit
bdb69df52d
14 changed files with 219 additions and 38 deletions
28
database/migrations/2023_04_11_115837_create_bios_table.php
Normal file
28
database/migrations/2023_04_11_115837_create_bios_table.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?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::create('bios', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('content');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('bios');
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue