Skip to content
Ram Viswanadha edited this page Dec 1, 2019 · 2 revisions

Steps for creating a new project

  1. Set up PHP
    $ brew update
    $ brew install php@7.3
    $ brew link php@7.3
    $ echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.bash_profile
    $ echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.bash_profile
    $ source source  ~/.bash_profile
    
  2. Set up composer.phar
    $ curl -sS https://getcomposer.org/installer | php
    $ cp composer.phar  /usr/local/bin/composer
    $ chmod +x /usr/local/bin/composer
    
  3. Set up laravel
    $ composer global require laravel/installer
    
  4. Set up spark-installer
    $ git clone https://github.com/laravel/spark-installer.git
    $ cd spark-installer
    $ composer install
    $ composer update
    
  5. Create a new project
    $ PATH=~/.composer/vendor/bin:$PATH ./spark new project-name
    
  6. Change directory to the new project
    $ cd project-name
    $ php artisan migrate
    

Clone this wiki locally