美文网首页Laravel
laravel config services

laravel config services

作者: 3275508ab630 | 来源:发表于2017-12-17 19:41 被阅读15次

services.php

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Stripe, Mailgun, SparkPost and others. This file provides a sane
    | default location for this type of information, allowing packages
    | to have a conventional place to find your various credentials.
    |
    */

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
    ],

    'ses' => [
        'key' => env('SES_KEY'),
        'secret' => env('SES_SECRET'),
        'region' => 'us-east-1',
    ],

    'sparkpost' => [
        'secret' => env('SPARKPOST_SECRET'),
    ],

    'stripe' => [
        'model' => App\User::class,
        'key' => env('STRIPE_KEY'),
        'secret' => env('STRIPE_SECRET'),
    ],
    /*
    |--------------------------------------------------------------------------
    | 第三方服务
    |--------------------------------------------------------------------------
    |
    | 该文件用于存储Stripe,Mailgun,SparkPost等第三方服务的凭证。 
    | 这个文件为这种类型的信息提供了一个理智的默认位置,
    | 允许包有一个传统的地方来找到你的各种凭证。
    | 
    |
    */

    ...

个人理解:这是专门用来存放第三方库配置的文件,前面三个是第三方发送邮件的配置,stripehttps://stripe.com/ 这个库的配置,看起来是国外的支付第三方库。以上配置对于我们来说都没什么用。

相关文章

网友评论

  • 酒醉疯子:你这是解读配置文件?
    酒醉疯子:@xiaobing1024 嗯,楼主,膜拜你,出个视频最好了
    3275508ab630:@酒醉疯子 对 `laravel` 的 `config` 文件夹下所有配置做一下了解

本文标题:laravel config services

本文链接:https://www.haomeiwen.com/subject/fbduwxtx.html