Home / Snippets / How to Install Laravel in the Current Directory
How to Install Laravel in the Current Directory cover

How to Install Laravel in the Current Directory

409

3 years ago

0 comments

Although it's not common you might wonder how to init/install Laravel into the current directory that you have already created. One that I can think of is that you might have created a repository online and when you clone the directory locally there's nothing inside.

To install Laravel in the current directory you can do the following steps. Do imagine you are inside the directory of where you want to place Laravel.
$ laravel new temp

Once the Laravel is created, move out all the content of the "temp" into the current directory.
$ mv temp/* .

Now you can remove the empty "temp" directory.
$ rm temp

Now the current directory will have the newly created Laravel installation and you can git commit and push to the repository.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this