Applied fixes from StyleCI

This commit is contained in:
Sujit Prasad
2016-02-24 10:17:53 -05:00
committed by StyleCI Bot
parent 5063ce6185
commit 915bb9d084
4 changed files with 23 additions and 100 deletions

View File

@@ -281,13 +281,11 @@ class InstallController extends Controller
// checking is the installation was done previously
try {
$check_for_pre_installation = System::all();
if($check_for_pre_installation) {
if ($check_for_pre_installation) {
return redirect()->back()->with('fails', 'The data in database already exist. Please provide fresh database');
}
}
} catch (Exception $e) {
}
// migrate database
Artisan::call('migrate', ['--force' => true]);