36 lines
778 B
PHP
36 lines
778 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateContactusesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('contactuses', function (Blueprint $table) {
|
|
$table->bigIncrements('id');/////'c_name', 'c_phone', 'c_title', 'c_describe'
|
|
$table->string('c_name');
|
|
$table->string('c_phone');
|
|
$table->string('c_title');
|
|
$table->string('c_describe');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('contactuses');
|
|
}
|
|
}
|