Your ROOT_URL in app.ini is http://159.89.207.79:3000/ but you are visiting http://9.cron.my.id:3000/mahesh/voyager-cms/src/commit/71c632616b0c4250404c56af80e3dd30efc5ce22/database/migrations/2016_01_01_000000_create_pages_table.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 

41 lines
1.1 KiB

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use TCG\Voyager\Models\Page;
class CreatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Create table for storing roles
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->integer('author_id');
$table->string('title');
$table->text('excerpt')->nullable();
$table->text('body')->nullable();
$table->string('image')->nullable();
$table->string('slug')->unique();
$table->text('meta_description')->nullable();
$table->text('meta_keywords')->nullable();
$table->enum('status', Page::$statuses)->default(Page::STATUS_INACTIVE);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('pages');
}
}