php 删除/删除 Laravel 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37251561/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 01:07:37  来源:igfitidea点击:

Remove/delete laravel project

phplaravel-4

提问by Yousef Altaf

Hi I am trying to discover the laravel for the first time I started with laravel 4.2 I just created a new project but by mistaking I write the comand line like this

嗨,我第一次尝试从 laravel 4.2 开始尝试发现 laravel 我刚刚创建了一个新项目,但是我错误地写了这样的命令行

composer create-project laravel/laravel {wamp/www/myProject} 4.2 --prefer-dist

when I saw my wwwdirectory I found the project Phase is something like that C:\wamp\www\{wamp\www\myProject}

当我看到我的www目录时,我发现项目阶段是这样的C:\wamp\www\{wamp\www\myProject}

now I realized that creating the project command should be something like composer create-project laravel/laravel myProject 4.2 --prefer-dist

现在我意识到创建项目命令应该是这样的 composer create-project laravel/laravel myProject 4.2 --prefer-dist

now can I solve this problem without deleting the project and recreate it again or should I delete and recreate project

现在我可以在不删除项目并重新创建它的情况下解决这个问题,还是应该删除并重新创建项目

and is it right to just go to my wampServer and delete the project manually or there is a special command to do so via the composer.

只需转到我的 wampServer 并手动删除项目是否正确,或者有一个特殊的命令可以通过 Composer 执行此操作。

regards

问候

回答by Ranjeet Singh

Just delete the folder. Composer just facilitate to create a laravel project on your behalf with correct version and dependencies.

删除文件夹就行了。Composer 只是方便地代表您创建具有正确版本和依赖项的 laravel 项目。

回答by Osman Gani Khan Masum

I saw you received an answer. You accepted it.

我看到你收到了答复。你接受了。

But you know, that is not the actual solution.

但是你知道,这不是真正的解决方案。

Your Composer has its own commandto help you deleting your needed one...

你的作曲家有自己command的帮助你删除你需要的...

here it is:

这里是:

rm -rf {{your project folder name}}

make sure that your composer opened in right folder direction.

确保您的作曲家以正确的文件夹方向打开。

That is,

那是,

When you are in your project folder, you can not delete it from here. you need to go outside of your current directory. This will only occur when you have opened your project in your IDE, doing works, and then you realise, you need to DELETE this project...

当你在你的项目文件夹中时,你不能从这里删除它。您需要离开当前目录。这只会发生在您在 IDE 中打开项目,进行工作,然后您意识到需要删除此项目时...

that means, you should make cd ..this command.

这意味着,你应该发出cd ..这个命令。

If this seems hard to understand, don't panic, just do

如果这似乎难以理解,请不要惊慌,只需执行

rm -rf {{your project folder name}}