walterwoshid / laravel-sail-for-windows
Windows (PowerShell) 对 Laravel Sail 在 Windows 上的支持。
1.0.0
2024-02-12 22:42 UTC
Requires
- php: ^8.0
- illuminate/support: ^9.52.16|^10.0|^11.0
- laravel/sail: ^1.0
This package is auto-updated.
Last update: 2024-09-12 23:46:44 UTC
README
Laravel Sail for Windows
Windows (PowerShell) 对 Laravel Sail 在 Windows 上的支持。
安装
composer require --dev walterwoshid/laravel-sail-for-windows
使用方法
-
在 PowerShell 终端中运行
.\vendor\bin\sail.ps1脚本。 -
您也可以运行
.\vendor\bin\sail.ps1 artisan vendor:publish --tag=sail-bin将脚本复制到项目根目录,并使用.\sail.ps1代替。 -
您还可以在 PowerShell 配置文件中添加
sail别名来运行脚本。- 在 PowerShell 中运行
notepad $profile- 将以下行添加到您的 PowerShell 配置文件中
New-Alias sail .\vendor\bin\sail.ps1- 保存并关闭文件。
- 在终端中运行
sail而不是.\vendor\bin\sail.ps1。
展示您的支持
如果此项目对您有所帮助,请给它一个 ⭐!
📝 许可证
版权所有 © 2023 Valentin Wotschel。
此项目遵循 MIT 许可。