File size: 779B
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExpensesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('expenses', function(Blueprint $table)
{
$table->increments('id');
$table->string('item_name');
$table->string('slug')->nullable();
$table->date('purchase_date');
$table->string('purchase_from');
$table->double('price');
$table->string('bill',100)->nullable(); //Attachement for the bill
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('expenses');
}
}