File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if (!file_exists(__DIR__."/vendor/autoload.php")) {
1313require __DIR__ ."/vendor/autoload.php " ;
1414
1515// Make kernel instance
16- $ kernel = Kernel::configure (__DIR__ . '/config ' );
16+ $ kernel = Kernel::configure (__DIR__ )-> withConfigPath ( __DIR__ . '/config ' );
1717
1818// Create command instance and set filename
1919$ setting = new Setting (__DIR__ );
Original file line number Diff line number Diff line change 1212 'webhook_url ' => app_env ('SLACK_WEBHOOK_URL ' ),
1313 ],
1414
15- 'twilio ' => [
16- 'account_sid ' => app_env ('TWILIO_ACCOUNT_SID ' ),
17- 'auth_token ' => app_env ('TWILIO_AUTH_TOKEN ' ),
18- 'from ' => app_env ('TWILIO_FROM ' ),
15+ 'sms ' => [
16+ 'provider ' => app_env ('SMS_PROVIDER ' , 'twilio ' ), // Default SMS provider
17+
18+ 'twilio ' => [
19+ 'account_sid ' => app_env ('TWILIO_ACCOUNT_SID ' ),
20+ 'auth_token ' => app_env ('TWILIO_AUTH_TOKEN ' ),
21+ 'from ' => app_env ('TWILIO_FROM ' ),
22+ ],
23+
24+ 'callisto ' => [
25+ 'access_key ' => app_env ('CALLISTO_ACCESS_KEY ' ),
26+ 'access_secret ' => app_env ('CALLISTO_ACCESS_SECRET ' ),
27+ 'notify_url ' => app_env ('CALLISTO_NOTIFY_URL ' ),
28+ 'sender ' => app_env ('CALLISTO_SENDER ' ),
29+ ],
1930 ],
2031];
Original file line number Diff line number Diff line change 2020
2121// Bind kernel to application
2222$ app ->bind (
23- Kernel::configure (base_path ( ' config ') )
23+ Kernel::configure (dirname ( __DIR__ ))-> withConfigPath ( dirname ( __DIR__ ) . ' / config ' )
2424);
2525
2626// Run The Application
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public function run()
1010 $ faker = FakerFactory::create ();
1111
1212 foreach (range (1 , 5 ) as $ value ) {
13- $ user =[
13+ $ user = [
1414 'name ' => $ faker ->name ,
1515 'description ' => $ faker ->text (100 ),
1616 'email ' => $ faker ->email ,
You can’t perform that action at this time.
0 commit comments