I want to create a bash shell function to create a new laravel 5 project by passing in the app name as an argument.
This is what I have so far:
function new {
composer create-project laravel/laravel $1 dev-develop --prefer-dist
}
I call it by new project-name
However I get this error:
[UnexpectedValueException] Could not parse version constraint hawksmoorcs: Invalid version string "project-name"