Skip to content

Instantly share code, notes, and snippets.

@naneri
Created June 2, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naneri/b0a28c22337fb4a6e12a to your computer and use it in GitHub Desktop.
Save naneri/b0a28c22337fb4a6e12a to your computer and use it in GitHub Desktop.
<?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