Skip to content

Instantly share code, notes, and snippets.

@syads321
Created June 30, 2017 14:30
Show Gist options
  • Save syads321/e139e880e40c38f1f2b7a78b154d0761 to your computer and use it in GitHub Desktop.
Save syads321/e139e880e40c38f1f2b7a78b154d0761 to your computer and use it in GitHub Desktop.
url to namespace
Route::get('an/{slashData?}', function($slashData = '') {
// $input_lines="any word here related to #English must #be replaced.";
$pageid = stripslashes($slashData);
$pattern = '/\//';
$newpageid = preg_replace($pattern,' ', $pageid);
$titlecase = ucwords($newpageid);
$namespace = preg_replace('/\s+/', '\\', $titlecase);
// Route::resource($slashData, $namespace);
// return redirect($slashData);
// return preg_replace('/\s+/', '\\', $titlecase);
// return $slashData;
// $children = array();
// foreach( get_declared_classes() as $class ){
// // if( is_subclass_of( $class, 'An' ) )
// $children[] = $class;
// }
// return json_encode($children);
})->where('slashData', '(.*)');
@syads321
Copy link
Author

APP_ENV=test
APP_DEBUG=true
APP_KEY=RQNSMWgJbJ7R9Jt0mPkeEAQAiZGHbOth

DB_HOST=172.16.0.33
DB_CONNECTION=mongodb
DB_DATABASE=SessionsTable
DB_USERNAME=amarbank
DB_PASSWORD=b@nk4mar321#!

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

PG_HOST=172.16.0.46
PG_DATABASE=db_api_affiliate
PG_USERNAME=postgres
PG_PASSWORD=secure-amar-password

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=[email protected]
MAIL_PASSWORD=DRGyX8%U
MAIL_ENCRYPTION=tls

AWS_URL=https://test-cdn.amarbank.co.id/
ASSET_VERSION=?v=2.1.8

URL_API=https://test.tunaiku.com/api
URL_API_FEEDBACK=https://test.tunaiku.com/api/v2.1/feedback/store
URL_API_WHITELIST=https://test.tunaiku.com/api/v1.0/white-list-referral

URL_HEADER=https://www-test.amarbank.co.id/menu-header?menu=new_referral
URL_FOOTER=https://www-test.amarbank.co.id/menu-footer?menu=new_referral&alink=/syarat-dan-ketentuan-tunaiku&blink=https://developer.tunaiku.com/referral/

SECKRET_KEY_TUNAIKU=3ce89cfba6cf511d823d25659c50e654b4bcfa10

URL_MAP_SEND=https://new-test-storage.tunaiku.com
URL_OLD_MAP_SEND=https://test-storage.tunaiku.com

NOREPLY_USERNAME=[email protected]
NOREPLY_PASSWORD=DRGyX8%U

VERSION_LOYALTY_API=current
VERSION_AFFILIATE_API=current

MKT_NEWSLETTER=https://test-mkt.amarbank.co.id/api-v1-newsletter
MKT_SHORT=https://test-mkt.amarbank.co.id/api/form-telehunter/short-store
MKT_API_USER=[email protected]
MKT_API_PASS=apikey1234

RECAPTCHA_SITEKEY=6Lf-fxwTAAAAANRxlfDHSI42fE6OlEY7xcJS6_gN
RECAPTCHA_SECRET=6Lf-fxwTAAAAAGCLQhJDh0EKUfWMAxnUeSHUFrcN

MAIL_TANYA_TUNAIKU=[email protected]
MAIL_MITRA_TUNAIKU=[email protected]

FB_PIXEL_ID=274383063008582
FB_PIXEL_PREFIX=_TES
PIWIK_URL=developer-analytics.amarbank.co.id
PIWIK_SITEID=12

STORAGE_LOCATION=Testing/
FILE_DRIVER=s3

S3_KEY=AKIAJ24FNVVJ7YJKYJFA
S3_SECRET=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
S3_REGION=ap-southeast-1
S3_BUCKET=tunaiku-bucket

URL_TUNAIKU=https://test.tunaiku.com/
URL_AMARBANK=https://www-test.amarbank.co.id/

JWT_INPUT=token
JWT_SECRET=$2y$10$CtCr1ADVHAHQYRcrUgBuAuu8Zy4diJcE6PD3espdWmedHoi13L2vy
APP_VERSION=v1_prioritas
BUGSNAG_API_KEY=aba361ba9e001e8b1cf4a59f9fa7a138

STAGE=token

URL_HEADER_FOOTER=https://test-cdn.amarbank.co.id/
URL_SWARA=https://test-swara.tunaiku.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment