38 lines
838 B
PHP
38 lines
838 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateSlidersTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('sliders', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('title')->nullable();
|
|
$table->string('text')->nullable();
|
|
$table->string('image')->nullable();
|
|
$table->string('link')->nullable();
|
|
$table->boolean('active')->default(0);
|
|
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('sliders');
|
|
}
|
|
}
|