Laravel is a PHP framework for web development. Here goes the installation procedure.
1. Install Composer (if not installed)
> brew install composer
2. Install Laravel
> composer global require laravel/installer
3. Add path to $PATH
Edit and add the following code to the shell configuration file:
-
zsh:
.zshrc
-
bash:
.bash_profile
# Laravel
export PATH="$HOME/.composer/vendor/bin:$PATH"
Close and restart the terminal.
4. Start coding
> cd (your laravel project directory)
> laravel new (project name)
:
:
> cd (project name)
> php artisan serve
-> open browser
-> http://localhost:8000
No comments:
Post a Comment