For PostgreSQL:
CREATE DATABASE tenancy;
CREATE USER tenancy WITH CREATEDB CREATEROLE PASSWORD 'tenancy';
GRANT ALL PRIVILEGES ON DATABASE tenancy TO tenancy WITH GRANT OPTION;
- Clone the repository with git clone
cp .env.example .env
- (Edit .env file)
composer install
php artisan key:generate
php artisan migrate --database=system
php artisan db:seed --class="CrearTenantSeeder"
npm install
npm run dev
ornpm run production
php artisan tenancy:db:seed --class="CreateRolePermissionSeeder"
Set your hosts file, for correct DNS resolution:
127.0.0.1 demo.test