Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Your alias cannot contain a space" #214

Closed
metude opened this issue Jun 29, 2014 · 7 comments
Closed

"Your alias cannot contain a space" #214

metude opened this issue Jun 29, 2014 · 7 comments

Comments

@metude
Copy link

metude commented Jun 29, 2014

I would like to assign php artisan alias with art. But when run alias art='php artisan' gives me "Your alias cannot contain a space"

@chodorowicz
Copy link

I think setting art=php artisan is enough. You don't need alias keyword.

@MartiUK
Copy link
Member

MartiUK commented Jul 3, 2014

If you edit the aliases file and add art=php artisan, it will work, alias.bat needs updating.

@isimmons
Copy link

isimmons commented Jul 4, 2014

Yep manually creating the aliases works

art=php artisan $* 
g:mig=php artisan generate:migration $*
g:con=php artisan generate:controller $*
g:mod=php artisan generate:model $*
vssh=ssh vagrant@127.0.0.1 -p 2222

I had trouble but the following seems to work to create the alias

alias foo=php artisan $*

creates in aliases file

foo=php artisan $*

Though strangely it appended it to the end of the line for the last alias so I still had to manually put a line break in there

....
vssh=ssh vagrant@127.0.0.1 -p 2222foo=php artisan $* 

Not a big deal to me to just manually put all my aliases in the file but that's just me :-)

UPDATE:
Actually it was probably because of my manually creating aliases and had deleted the extra new line last time I made one. The alias command seems to put a new line in after creating the alias so it works the next time I create one using the alias command

@Jackbennett
Copy link
Contributor

Now is fixed tested as of 1.3-pre. the bat PR fix could have landed sooner I'm not sure specifically what it was.

alias art=php artisan works fine.

@GhislainMitahi
Copy link

en voulant changer le port de mon serveur avec "php artisan --port:5090" il m'affiche "The "--port:5090" option does not exist."

que faire ?

@Jackbennett
Copy link
Contributor

I think you need php artisan serve --port=8080 / php artisan serve --port 8080 or maybe SERVER_PORT="8080" php artisan serve should work.

Args are always <space> or =. The colon is something just for artisan.

@GhislainMitahi
Copy link

GhislainMitahi commented Jun 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants