Skip to content

Instantly share code, notes, and snippets.

@PLaRoche PLaRoche/manifold.php
Last active Dec 13, 2017

Embed
What would you like to do?
Manifold.php for JawsDB Mysql
<?php
return [
'token' => env('MANIFOLD_API_TOKEN', null),
'resource_id' => env('MANIFOLD_RESOURCE_ID', null),
'project' => env('MANIFOLD_PROJECT', null),
'product' => env('MANIFOLD_PRODUCT', null),
'aliases' => [
'database' => [
'connections' => [
'mysql' => [
'host' => function(){
$url = parse_url(config('laravel-demo-mysql.JAWSDB_URL'));
return $url['host'];
},
'password' => function(){
$url = parse_url(config('laravel-demo-mysql.JAWSDB_URL'));
return $url['pass'];
},
'username' => function(){
$url = parse_url(config('laravel-demo-mysql.JAWSDB_URL'));
return $url['user'];
},
'database' => function(){
$url = parse_url(config('laravel-demo-mysql.JAWSDB_URL'));
return substr($url["path"], 1);
}
]
]
]
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.