Revamped the account controller.

This commit is contained in:
James Cole
2014-08-30 14:26:33 +02:00
parent 85f1e744b8
commit 9db4137a1b
16 changed files with 339 additions and 519 deletions

View File

@@ -22,7 +22,8 @@ class CreateAccountTypesTable extends Migration
'account_types', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('description', 50);
$table->string('type', 50);
$table->boolean('editable');
}
);
}

View File

@@ -11,16 +11,16 @@ class AccountTypeSeeder extends Seeder
DB::table('account_types')->delete();
AccountType::create(
['description' => 'Default account']
['type' => 'Default account','editable' => true]
);
AccountType::create(
['description' => 'Cash account']
['type' => 'Cash account','editable' => false]
);
AccountType::create(
['description' => 'Initial balance account']
['type' => 'Initial balance account','editable' => false]
);
AccountType::create(
['description' => 'Beneficiary account']
['type' => 'Beneficiary account','editable' => true]
);
}