如何卸载 Laravel?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45397433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Uninstall Laravel?
提问by Muhammad Kamran Javed
I am facing fatal errors regarding Artisan. I think I couldn't install laravel complete due to slow internet. Now I want to remove Laravel from root and want to have fresh installation. Can anyone help me?
我正面临有关 Artisan 的致命错误。我想由于互联网速度慢,我无法安装 laravel。现在我想从 root 中删除 Laravel 并希望进行全新安装。谁能帮我?
回答by Adnan Mumtaz
if you have installed it globally you can simply remove it by composer global remove laravel/installer
如果您已全局安装它,则可以通过以下方式简单地将其删除 composer global remove laravel/installer
If you have installed it via composer project you simply remove the directory.
如果您通过 composer 项目安装了它,您只需删除该目录。
回答by Codemaker
Since I was looking all around how to uninstall packages and after reading tones of documentations here's the short how-to uninstall a workbench package in Laravel
由于我一直在寻找如何卸载软件包,并且在阅读了大量文档之后,这里是在 Laravel 中卸载工作台软件包的简短方法
Remove package service provider from 'providers' array in app/config/app.php
Remove the package folder in workbench/
Run:
php composer.phar dump-autoload
php artisan clear-compiled
php artisan optimize
(optional) remove all related code using the package (you'll get errors about that)
从 app/config/app.php 中的 'providers' 数组中删除包服务提供者
删除工作台/中的包文件夹
跑:
php composer.phar 转储自动加载
php artisan 清晰编译
php工匠优化
(可选)使用包删除所有相关代码(您会收到有关此的错误)
or use composer global remove laravel/installer
或使用 composer global remove laravel/installer
回答by AbdulAhmad Matin
For me, the command that actually did the trick was: composer global remove laravel/installer
对我来说,真正起作用的命令是:composer global remove laravel/installer