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

373

2 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

Ahmad Aziz

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 ☕️

Post Tutorials

Learn trending tutorials for ReactJs, React Native, VueJS, NextJs, Laravel, Tailwind CSS, and Flutter development.
View Tutorials

Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your web projects
View Components

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this