Create Laravel project in current existing directory

Default command laravel new will create new directory with the name we specify after new command.

Sometimes we need to create project in current existing directory. To do so, we can run laravel new with additional parameter –force command and dot notation inside current directory like this :

laravel new –force .

The laravel above command are no longer supported, you can use composer like this :

composer create-project laravel/laravel="7.*" .

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>