项目作者: LiamThursfield

项目描述 :
A base CMS for creating & managing websites. Using Laravel, Tailwind, Vue and Inertia
高级语言: Vue
项目地址: git://github.com/LiamThursfield/laravel-tvi.git
创建时间: 2020-04-23T22:01:16Z
项目社区:https://github.com/LiamThursfield/laravel-tvi

开源协议:

下载


SIGI

About SIGI

Core Stack


Installation

Requirements

Steps

  1. Clone the repository
  2. Copy .env.example to .env
    1. cp .env.example .env
  3. Install dependencies to install Laravel Sail
    1. composer install --ignore-platform-reqs
  4. Start sail
    1. ./vendor/bin/sail up
  5. Install composer dependencies
    1. ./vendor/bin/sail composer install
  6. Install yarn dependencies
    1. ./vendor/bin/sail yarn
  7. Generate application key
    1. ./vendor/bin/sail artisan key:generate
  8. Run database migrations for the landlord/central database
    1. ./vendor/bin/sail artisan migrate --path=database/migrations/landlord
  9. Create a sample tenant
    1. ./vendor/bin/sail artisan tenants:create
    1. For the ID - choose any unique string e.g. tenant
    2. For the domain(s) - choose the subdomain you’d like to use to access the tenant’s routes e.g. tenant would result in tenant.localhost
  10. (Optional) Run database seeders for the tenant database

    1. ./vendor/bin/sail artisan tenants:seed
  11. Migrate tenants

    1. ./vendor/bin/sail artisan tenants:migrate

Guides

Creating settings

This project uses Laravel Settings for it’s settings.
So the process is inline with the package’s documentation.

  1. Create a new settings class
    1. ./vendor/bin/sail artisan make:settings SettingsName --group=groupName --path=App/Models/Settings/
    1. Add the settings properties to the class
  2. Create the settings migration (note: the path is important here)
    1. ./vendor/bin/sail artisan make:settings-migration CreateSettingsName database/migrations/tenant
    1. Add the settings to the migration
  3. Add the settings class to the config.settings.settings config file

Preparing for production

  1. Generate the JS translation files (if any have been added/updated)
    1. ./vendor/bin/sail artisan zora:generate
  2. Production-ify JS/CSS
    1. ./vendor/bin/sail artisan yarn prod

Acknowledgements

Icons

Design/UI/UX inspiration