herode/amana

仪表板上传和下载应用程序管理

维护者

详细信息

github.com/binhnxit/amana

源代码

问题

安装: 27

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

语言:CSS

dev-master / 1.0.x-dev 2019-04-22 07:18 UTC

This package is auto-updated.

Last update: 2024-09-22 19:16:36 UTC


README

Amana Downloads Page

Amana Uploads Page

安装

使用以下命令通过composer安装此包
composer require herode/amana

更新composer后,您也可以通过命令发布配置文件、迁移文件、public ...

php artisan amana:install

接下来,运行迁移

php artisan migrate

添加配置磁盘存储,打开文件:config/filesystems.php,添加以下行

  'disks' => [
        ...
        'amana' => [
            'driver' => 'local',
            'root'   => public_path('amanas')
        ],
  ]

清除配置

php artisan config:cache

composer dump-autoload

完成,我们可以访问 domain.com/amana

配置

打开文件 app\amana.php

配置域名 - 默认不使用(null)

/*
    |--------------------------------------------------------------------------
    | Amana Domain
    |--------------------------------------------------------------------------
    |
    | This is the subdomain where Amana will be accessible from. If this
    | setting is null, Amana will reside under the same domain as the
    | application. Otherwise, this value will serve as the subdomain.
    |
    */

    'domain' => null,

配置路径 - 您可以使用默认路径 = domain.com/amana

/*
    |--------------------------------------------------------------------------
    | Amana Path
    |--------------------------------------------------------------------------
    |
    | This is the URI path where Amana will be accessible from. Feel free
    | to change this path to anything you like. Note that the URI will not
    | affect the paths of its internal API that aren't exposed to users.
    |
    */

    'path' => 'amana',

配置中间件 - 默认 web

/*
    |--------------------------------------------------------------------------
    | Amana Route Middleware
    |--------------------------------------------------------------------------
    |
    | These middleware will get attached onto each Amana route, giving you
    | the chance to add your own middleware to this list or change any of
    | the existing middleware. Or, you can simply stick with this list.
    |
    */

    'middleware' => ['web'],
    

配置搜索环境的App Bundle ID

/*
    |--------------------------------------------------------------------------
    | Amana Bundle ID
    |--------------------------------------------------------------------------
    |
    | Bundle id each environment for app
    |
    */
    'bundle_id' => [
        'dev'  => 'bundle_id.dev',
        'stg'  => 'bundle_id.stg',
        'prod' => 'bundle_id.prod',
    ]

Gitignore

public/amanas 添加到根项目中的 .gitignore 文件中

许可证