for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Arcanesoft\Pages\Bases\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreatePagesTable
*
* @author ARCANEDEV <[email protected]>
*/
class CreatePagesPagesTable extends Migration
{
/* ------------------------------------------------------------------------------------------------
| Constructor
| ------------------------------------------------------------------------------------------------
* CreatePagesPagesTable constructor.
public function __construct()
parent::__construct();
$this->setTable('pages');
}
| Main Functions
* {@inheritdoc}
public function up()
$this->createSchema(function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('slug');
$table->text('content');
$table->string('view');
$table->timestamps();
$table->unique('slug');
});