File: /home/armgroup/libs/database/migrations/2023_07_02_151030_create_authors_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAuthorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('authors', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('slug')->unique();
$table->string('h1')->nullable();
$table->string('meta_title')->nullable();
$table->string('image')->nullable();
$table->string('short_description')->nullable();
$table->text('description')->nullable();
$table->unsignedInteger('sort_order')->nullable();
$table->text('faq')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('authors');
}
}