mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 16:44:04 +00:00
Add composer script to copy .env.example to .env
This commit is contained in:
parent
7355d9b98a
commit
576ec1cf02
2 changed files with 7 additions and 0 deletions
2
.env.example
Normal file
2
.env.example
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# DB_USERNAME=foo
|
||||||
|
# DB_PASSWORD=bar
|
||||||
|
|
@ -37,5 +37,10 @@
|
||||||
"Stancl\\Tenancy\\TenancyServiceProvider"
|
"Stancl\\Tenancy\\TenancyServiceProvider"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"post-root-package-install": [
|
||||||
|
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue