How to Uninstall Laravel?

拟墨画扇 提交于 2021-02-06 15:29:01

问题


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?


回答1:


if you have installed it globally you can simply remove it by composer global remove laravel/installer

If you have installed it via composer project you simply remove the directory.




回答2:


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

  1. Remove package service provider from 'providers' array in app/config/app.php

  2. Remove the package folder in workbench/

  3. Run:

    php composer.phar dump-autoload

    php artisan clear-compiled

    php artisan optimize

  4. (optional) remove all related code using the package (you'll get errors about that)

or use composer global remove laravel/installer




回答3:


For me, the command that actually did the trick was: composer global remove laravel/installer



来源:https://stackoverflow.com/questions/45397433/how-to-uninstall-laravel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!