Created
June 2, 2015 11:09
-
-
Save naneri/b0a28c22337fb4a6e12a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function postDatabase() | |
{ | |
$data = Input::all(); | |
$newDbConfig = new NewConfig; | |
$newDbConfig->toFile(app_path().'/config/database.php', [ | |
'connections.mysql.host' =>$data['host'], | |
'connections.mysql.database' =>$data['database'], | |
'connections.mysql.username' =>$data['username'], | |
'connections.mysql.password' =>$data['password'] | |
]); | |
DB::unprepared(file_get_contents(public_path().'/92fiveapp.sql')); | |
return View::make('install.timezone'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment