mouyong/webman-laravel-zero

Webman plugin mouyong/webman-laravel-zero

dev-master 2022-10-18 05:35 UTC

This package is auto-updated.

Last update: 2024-12-18 10:17:14 UTC


README

composer config repositories.webman-laravel-zero-foundation vcs https://github.com/mouyong/webman-laravel-zero-foundation

composer require mouyong/webman-laravel-zero:dev-master laravel-zero/foundation:dev-main

配置项目

在 config/app.php 中增加如下内容

return [
    ...

    # 以下内容可参考 config/app.php.new.php 文件
    'name' => "Zero", // 单引号,首字母大写。app:rename 匹配使用的
    // 'version' => app('git.version'),
    'version' => '1.0.0',
    'env' => 'development',
    'timezone' => 'PRC',
    'providers' => [
        App\Providers\AppServiceProvider::class,
    ],
];

更新 composer.json

composer.json

    "bin": ["zero"], // 这行要原样保存,app:rename 使用
    "scripts": {
        // 初始化 laravel-zero/illuminate 与相关配置
        "post-autoload-dump": [
            "MouYong\\WebmanLaravelZero\\ComposerScripts::postAutoloadDump"
        ],
        ...
    }

使用

php zero app:install database
composer require illuminate/routing

效果截图

image

image