Posts Learn Components new Snippets new Categories Tags About
/

How to Install Laravel in the Current Directory

Learn how to install laravel in the current directory using the command line interface

Created on Jun 27, 2021

24 views

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.
new

If you like our tutorial, do make sure to support us with some coffee. We need the juice to write the content during the night 🤙🏻