headerx / laravel-jetstream-installers
此包已被弃用且不再维护。未建议替代包。
Jetstream 框架中安装各种包缺失的命令
v0.1.1
2022-02-26 19:00 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^9.0
- laravel/jetstream: ^2.6
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-03-19 14:40:27 UTC
README
支持的包
目前可用的命令/安装器仅针对 lab404/laravel-impersonate
支持的命令
命令 | Windows | Mac | Ubuntu | Jetstream | Laravel |
---|---|---|---|---|---|
jetstream-installers:lab404-impersonate |
❌ | ✔️ | ✔️ | 2.x | 8.x-9x |
安装
您可以通过 composer 安装此包
composer require headerx/laravel-jetstream-installers
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="laravel-jetstream-installers-config"
这是发布配置文件的内容
<?php // config for HeaderX/JetstreamInstallers return [ 'lab404-impersonate' => [ 'enabled' => env('LAB404_IMPERSONATE', false), 'middleware' => [ 'web', 'auth:sanctum', // 'can:impersonate', ], 'route_prefix' => 'lab404-impersonate', ], ];
可选地,您可以使用以下命令发布视图
php artisan vendor:publish --tag="laravel-jetstream-installers-views"
使用方法
运行命令
目前唯一可用的命令是针对 lab404/laravel-impersonate
php artisan jetstream-installers:lab404-impersonate --help Description: install lab404/laravel-impersonate into skeleton with routes and views Usage: jetstream-installers:lab404-impersonate [options] Options: --composer[=COMPOSER] Absolute path to the Composer binary which should be used to install packages [default: "global"] -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
编写自己的安装器
Installer::insertLineAfter( app_path('Models/User.php'), 'use Laravel\\Jetstream\\HasProfilePhoto;', 'use Lab404\\Impersonate\Models\\Impersonate;' )
测试
composer test
变更日志
有关最近更改的更多信息,请参阅 变更日志。
贡献
有关详细信息,请参阅 贡献指南。
安全漏洞
有关如何报告安全漏洞的详细信息,请参阅 我们的安全策略。
鸣谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件。