mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 19:54:45 +02:00

* Convert route options to fluent methods Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods. * Slim `lang` files * Shift core files * Validate via object directly within Controllers * Use `Gate` facade for controller authorization * Dispatch jobs directly * Remove base controller inheritance * Default config files In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used. * Set new `ENV` variables * Add new Laravel `composer run dev` script * Add `storage/app/private` folder * Bump Composer dependencies * Convert `$casts` property to method * Adopt Laravel type hints * Shift cleanup * Apply suggestions from code review Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> * Add old key as backup * Update composer * Remove extra line * Update this --------- Co-authored-by: Shift <shift@laravelshift.com> Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
120 lines
3.5 KiB
PHP
120 lines
3.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Mailer
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This option controls the default mailer that is used to send all email
|
|
| messages unless another mailer is explicitly specified when sending
|
|
| the message. All additional mailers can be configured within the
|
|
| "mailers" array. Examples of each type of mailer are provided.
|
|
|
|
|
*/
|
|
|
|
'default' => env('MAIL_MAILER', 'log'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Mailer Configurations
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may configure all of the mailers used by your application plus
|
|
| their respective settings. Several examples have been configured for
|
|
| you and you are free to add your own as your application requires.
|
|
|
|
|
| Laravel supports a variety of mail "transport" drivers that can be used
|
|
| when delivering an email. You may specify which one you're using for
|
|
| your mailers below. You may also add additional mailers if needed.
|
|
|
|
|
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
|
|
| "postmark", "resend", "log", "array",
|
|
| "failover", "roundrobin"
|
|
|
|
|
*/
|
|
|
|
'mailers' => [
|
|
'mailgun' => [
|
|
'transport' => 'mailgun',
|
|
],
|
|
|
|
'smtp' => [
|
|
'transport' => 'smtp',
|
|
'scheme' => env('MAIL_SCHEME', env('MAIL_ENCRYPTION')),
|
|
'url' => env('MAIL_URL'),
|
|
'host' => env('MAIL_HOST', '127.0.0.1'),
|
|
'port' => env('MAIL_PORT', 2525),
|
|
'username' => env('MAIL_USERNAME'),
|
|
'password' => env('MAIL_PASSWORD'),
|
|
'timeout' => null,
|
|
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
|
],
|
|
|
|
'ses' => [
|
|
'transport' => 'ses',
|
|
],
|
|
|
|
'postmark' => [
|
|
'transport' => 'postmark',
|
|
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
|
|
// 'client' => [
|
|
// 'timeout' => 5,
|
|
// ],
|
|
],
|
|
|
|
'resend' => [
|
|
'transport' => 'resend',
|
|
],
|
|
|
|
'sendmail' => [
|
|
'transport' => 'sendmail',
|
|
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
|
],
|
|
|
|
'log' => [
|
|
'transport' => 'log',
|
|
'channel' => env('MAIL_LOG_CHANNEL'),
|
|
],
|
|
|
|
'array' => [
|
|
'transport' => 'array',
|
|
],
|
|
|
|
'failover' => [
|
|
'transport' => 'failover',
|
|
'mailers' => [
|
|
'smtp',
|
|
'log',
|
|
],
|
|
],
|
|
|
|
'roundrobin' => [
|
|
'transport' => 'roundrobin',
|
|
'mailers' => [
|
|
'ses',
|
|
'postmark',
|
|
],
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Global "From" Address
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| You may wish for all emails sent by your application to be sent from
|
|
| the same address. Here you may specify a name and address that is
|
|
| used globally for all emails that are sent by your application.
|
|
|
|
|
*/
|
|
|
|
'from' => [
|
|
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
|
'name' => env('MAIL_FROM_NAME', 'Example'),
|
|
],
|
|
|
|
];
|