Skip to content

Latest commit

 

History

History
48 lines (44 loc) · 2.15 KB

README.md

File metadata and controls

48 lines (44 loc) · 2.15 KB

Quick dive into "Laravel Valet"

Simple loan request page using VueJS. This repo consists of 2 parts:..

  1. Laravel Valet environment
  2. parkside site directory

1. Installation steps in Terminal

This is least intrusive (i hope) to your local setup:

  1. Download this repo: git clone https://github.com/mikeurnun/laravel-valet-dive.git
  2. Navigate to downloaded directory: cd laravel-valet-dive
  3. Install Laravel Valet dependencies: composer update && composer install
  4. Install Valet: ./vendor/bin/valet install
  5. Link parkside site with Valet: ./vendor/bin/valet park
  6. Navigate to root of parkside site: cd ./parkside
  7. Install front-end dependencies: npm install
  8. Install back-end dependencies: composer install
  9. Run: gulp --production

2. Establish Database Connection

  1. Create a copy of .env file: cp .env.example .env
  2. Using your database utility tool of choice (phpMyAdmin, Sequel Pro, Mysql Workbench etc..), create a new database for parkside site
  3. Open .env file in your IDE of choice and modify following lines with correct database credentials:
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
  1. Stage a new table in the database: php artisan migrate:refresh
  2. Create & set new app key for parkside site: php artisan key:generate

You should be all set, open up your browser & go to: http://parkside.dev
Online DEMO: http://parkside.narmandakh.com/

Graceful uninstallation of everything above

  • Stop Valet: ./vendor/bin/valet stop
  • Uninstall Valet: ./vendor/bin/valet uninstall
  • Remove database manually
  • Delete laravel-valet-dive directory & that's it! .
    ..
    ...
    ..
    .
  • FYI, only thing Laravel Valet installs globally in your system is dnsmasq via Homebrew.
    If it's still there, simply run: brew uninstall dnsmasq