tmg

Automobile trading and services


License
MIT
Install
bower install tmg

Documentation

Magic Property

Let’s find your new home, room, office, shop or empty land!

I. Installation instruction (For developing team)

  1. Clone project git clone https://github.com/MagicLabsVN/magicproperty.git
  2. Go to project directory cd magicproperty
  3. Run composer install to install vendors
  4. Grant permission to write to bootstrap/cache and storage directories and their sub directories
    • chmod -R 777 bootstrap/cache
    • chmod -R 777 storage

II. Configuration

  1. Copy & rename .env.example to .env: cp .env.example .env

  2. Generate app key: php artisan key:generate (generated key will be added to your .env file automatically)

  3. More configurations in .env file:

    APP_ENV=local (or production )

    APP_DEBUG=true (or false to disable debuging bar)

    APP_KEY= (Will be generate automatically by command)

    DB_HOST=localhost

    DB_DATABASE= Your database name

    DB_USERNAME= Your database user name

    DB_PASSWORD= Your database password

III. Data migration

Make sure database connection is configured correctly

  1. Migrate database structure: php artisan migrate
  2. Seed data: php artisan db:seed
  3. Generate migration from existed table: php artisan migrate:generate <table-name>
  4. Generate data seeding from existed table: php artisan iseed <table-name>

IV. Composer commands

Following composer commands are frequently used in this project:

  1. composer install installs the vendor packages according to composer.lock (or creates one if not present)
  2. composer update regenerates composer.lock and installs the latest versions of available packages
  3. composer dump-autoload regenerates the list of all classes need to be included. Used it when there are new classes inside the project.
  4. composer dump-autoload -o faster loading web pages.