File "2015_01_22_150640_create_expenses_table.php"
Full Path: /home/isoftco/public_html/hrm/database/migrations/2015_01_22_150640_create_expenses_table.php
File size: 779 bytes
MIME-type: text/x-php
Charset: utf-8
<?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');
}
}