Working on tests

This commit is contained in:
Hillel Coren 2017-04-18 16:53:00 +03:00
parent 6d82985183
commit e4b07f0862
2 changed files with 3 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class AuthController extends Controller
public function getLoginWrapper()
{
if (! Utils::isNinja() && ! User::count()) {
return redirect()->to('/invoice_now');
return redirect()->to('/setup');
}
if (Utils::isNinja()) {

View File

@ -21,7 +21,7 @@ class AddCustomContactFields extends Migration
$table->string('custom_value1')->nullable();
$table->string('custom_value2')->nullable();
});
/*
Schema::table('payment_methods', function ($table) {
$table->unsignedInteger('account_gateway_token_id')->nullable()->change();
$table->dropForeign('payment_methods_account_gateway_token_id_foreign');
@ -38,6 +38,7 @@ class AddCustomContactFields extends Migration
Schema::table('payments', function ($table) {
$table->foreign('payment_method_id')->references('id')->on('payment_methods')->onDelete('cascade');
});
*/
}
/**