Add stubs for various Laravel components and scaffolding
- Created stubs for JavaScript and SASS assets. - Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule. - Implemented scaffolding for configuration, service provider, and Vite integration. - Included example views for module structure. - Introduced a module loader for Vite to handle asset paths dynamically.
This commit is contained in:
@@ -46,6 +46,12 @@ class MailConfigServiceProvider extends ServiceProvider
|
||||
$mail = json_decode($mail->value);
|
||||
$company = json_decode($setting->value)->company ?? 'Your Company';
|
||||
|
||||
$password = '';
|
||||
if (isset($mail->password)) {
|
||||
$decrypted = (new SignRSA())->DecryptFunc($mail->password);
|
||||
$password = $decrypted ?: $mail->password;
|
||||
}
|
||||
|
||||
return [
|
||||
'driver' => $mail->transport ?? 'smtp',
|
||||
'host' => $mail->host ?? '',
|
||||
@@ -56,7 +62,7 @@ class MailConfigServiceProvider extends ServiceProvider
|
||||
],
|
||||
'encryption' => $mail->encryption === 0 ? 'tls' : $mail->encryption,
|
||||
'username' => $mail->user ?? '',
|
||||
'password' => isset($mail->password) ? (new SignRSA())->DecryptFunc($mail->password) : '',
|
||||
'password' => $password,
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user