Airlines model and controller

This commit is contained in:
Nabeel Shahzad
2017-06-08 20:02:52 -05:00
parent 1e049fa8a9
commit 4fcfc84ccf
25 changed files with 724 additions and 138 deletions

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAirlinesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('airlines', function (Blueprint $table) {
$table->increments('id');
$table->string('code');
$table->string('name');
$table->boolean('enabled');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('airlines');
}
}