hafid / project_installer
一个简单的Laravel包,帮助您设置应用
dev-master
2021-01-01 16:55 UTC
This package is auto-updated.
Last update: 2024-09-29 06:02:50 UTC
README
安装
composer require hafid/project_installer
使用方法
注册包服务提供者打开config/app.php
文件,并将以下行添加到提供者数组中
\hafid\project_installer\Providers\ProjectInstallerProvider::class,
发布所有资产和文件
php artisan vendor:publish --tag=all
注册包中间件打开App\Http\Kernel
文件,并将以下行添加到$routeMiddleware
数组中
'installer' => \App\Http\Middleware\IsInstalled::class,
配置
在config\installer.php
中,您可以添加和自定义配置
return [ "min_php_version" => "7.2.5", // add any required extension for you application "required_extensions" => [ 'openssl', 'pdo', 'mbstring', 'xml', 'ctype', 'gd', 'tokenizer', 'JSON', 'bcmath', 'exif', 'cURL', 'fileinfo', ], // add any folder to check his write and open permisions "required_permissions" => [ 'storage' => '0777', 'storage/app' => '0777', 'storage/framework' => '0777', 'storage/logs' => '0777', 'bootstrap/cache' => '0777', ], ];
现在您的包已准备好使用
navigate to you_project_url/install to install your application