Skip to content

This is my cheatsheet for laravel operations on Mac Terminal

License

Notifications You must be signed in to change notification settings

james-lee-it/laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

laravel

This is my cheatsheet for laravel operations on Mac Terminal

Initiate Laravel

If opening or restarting Mac Terminal, put in following to include Laravel $ export PATH=$PATH:$HOME/.composer/vendor/bin

There is also a way to automatically set Laravel, so you don't have to do the above command line everytime restarting Mac Terminal. See: http://stackoverflow.com/questions/25373188/laravel-installation-how-to-place-the-composer-vendor-bin-directory-in-your

Use sublime in Mac Terminal CLI

if $ subl did not work, uninstall sublime first. Then, install sublime via homebrew using $ brew cask install sublime-text And Voila! You can open the directory (incl. folders and files in it) using $ subl . Whereas, subl would only open up sublime text with an untitled sublime tab.

For more info, see: http://stackoverflow.com/questions/40645118/how-to-open-a-file-in-sublime3-from-the-command-line-on-mac-osx

Hook up mySQL with Laravel

Under the root directory of the project, type $ php artisan migrate. On Sequel Pro, put username as root (depending on the setup).

About

This is my cheatsheet for laravel operations on Mac Terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published