mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	Merge branch 'update-front' of https://gitlab.com/mohit.panjvani/crater-web into auto-update
This commit is contained in:
		| @ -58,13 +58,30 @@ class EnvironmentController extends Controller | ||||
|      */ | ||||
|     public function saveMailEnvironment(MailEnvironmentRequest $request) | ||||
|     { | ||||
|         $setting = Setting::getSetting('profile_complete'); | ||||
|         $results = $this->EnvironmentManager->saveMailVariables($request); | ||||
|  | ||||
|         Setting::setSetting('profile_complete', 4); | ||||
|         if ($setting !== 'COMPLETED') | ||||
|         { | ||||
|             Setting::setSetting('profile_complete', 4); | ||||
|         } | ||||
|  | ||||
|         return response()->json($results); | ||||
|     } | ||||
|  | ||||
|     public function getMailEnvironment() | ||||
|     { | ||||
|         $MailData = [ | ||||
|             'mail_driver' => config('mail.driver'), | ||||
|             'mail_host' => config('mail.host'), | ||||
|             'mail_port' => config('mail.port'), | ||||
|             'mail_username' => config('mail.username'), | ||||
|             'mail_password' => config('mail.password'), | ||||
|             'mail_encryption' => config('mail.encryption') | ||||
|         ]; | ||||
|  | ||||
|         return response()->json($MailData); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * | ||||
|  | ||||
		Reference in New Issue
	
	Block a user