antony-p
1/4/2018 - 2:37 PM

Setup Laravel 5.0

Setup Laravel 5.0

#Libraries ##Helpers

  • HashIds - converts an integer to a 'hash'

#Setup ##Setup Steps under Homestead

##Steps I've found helpful to setting up a new laravel project

  • sudo composer create-project laravel/laravel --prefer-dist to create laravel dir
  • sudo chown -R antony laravel
  • rename laravel dir to project name
  • edit readme.md
  • git init
  • set Application name / namespace php artisan app:name NewName
  • commit Initial
  • edit / create .env file
  • php artisan make:model User -m to create new models & migrations
  • php artisan migrate (to add the default migration files)

##Includes

  • Add package to composer.json "hashids/hashids": "1.0.5"
  • run composer update not php composer...

##Permissions

  • find ./ -type f -exec chmod 644 {} \;
  • find ./ -type d -exec chmod 755 {} \;

##Tables

  • php artisan make:migration create_accounts_table --create "accounts"
  • Build Schema
  • php artisan migrate