Skip to content

Commit

Permalink
Merge pull request #6 from lara-zeus/fixes
Browse files Browse the repository at this point in the history
Fixes and add stubs
  • Loading branch information
atmonshi authored Mar 20, 2024
2 parents 3299eeb + ef58de0 commit 3249f89
Show file tree
Hide file tree
Showing 52 changed files with 1,317 additions and 177 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,31 @@

And more on the way.

## Demo
## Documentation

> Visit our demo site: https://demo.larazeus.com/admin
### install

`composer require lara-zeus/tartarus`

## Full Documentation
## setup

> Visit our website to get the complete documentation: https://larazeus.com/tartarus
add locales to zeus-tartarus.php

```php
'locales' => [
'en' => ['name' => 'English', 'native' => 'English', 'regional' => 'en_GB', 'flag' => 'gb'],
],
```
### Env:

`CENTRAL_DOMAIN=domain.test`

### config

- filament-logger.php:
```php
'activity_resource' => \LaraZeus\Erebus\Filament\Clusters\Employees\Resources\ActivityResource::class,
```
## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on recent changes.
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lara-zeus/tartarus",
"description": "simple multi tenants with panels",
"description": "simple multi tenants",
"keywords": [
"laravel",
"lara-zeus",
Expand Down Expand Up @@ -31,7 +31,6 @@
"filament/filament": "^3.2",
"ryangjchandler/blade-tabler-icons": "^2.3",
"filament/spatie-laravel-translatable-plugin": "^3.2",
"lara-zeus/pontus": "^1.0",
"lara-zeus/erebus": "^1.0",
"lara-zeus/chaos": "^1.0",
"rickdbcn/filament-email": "^1.0",
Expand Down
10 changes: 0 additions & 10 deletions config/zeus-erebus.php

This file was deleted.

7 changes: 7 additions & 0 deletions config/zeus-tartarus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

return [
'central_domain' => env('CENTRAL_DOMAIN', ''),

'delete-before-date' => '2022-01-01',
];
36 changes: 36 additions & 0 deletions database/migrations/create_companies_table.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('companies', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->index();
$table->string('name');
$table->string('slogan')->nullable();
$table->string('subdomain')->nullable();
$table->string('font_family')->nullable();
$table->string('primary_color')->nullable();
$table->string('cover')->nullable();
$table->string('logo')->nullable();
$table->timestamps();
$table->actionBy();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('companies');
}
};
32 changes: 32 additions & 0 deletions database/migrations/create_company_user_table.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('company_user', function (Blueprint $table) {
$table->id();
$table->foreignId('company_id');
$table->foreignId('user_id');
$table->string('role')->nullable();
$table->timestamps();
$table->actionBy();
$table->unique(['company_id', 'user_id']);
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('company_user');
}
};
33 changes: 33 additions & 0 deletions database/migrations/create_filament_email_table.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up()
{
Schema::create('filament_email_log', function (Blueprint $table) {
$table->id();

$table->string('from')->nullable();
$table->string('to')->nullable();
$table->string('cc')->nullable();
$table->string('bcc')->nullable();
$table->string('subject')->nullable();
$table->longText('text_body')->nullable();
$table->longText('html_body')->nullable();
$table->longText('raw_body')->nullable();
$table->longText('sent_debug_info')->nullable();
$table->integer('company_id')->nullable();
$table->actionBy();
$table->timestamps();
});
}

public function down()
{
Schema::drop('filament_email_log');
}
};
27 changes: 27 additions & 0 deletions database/migrations/create_settings_table.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::create('settings', function (Blueprint $table): void {
$table->id();

$table->string('name');
$table->boolean('locked')->default(false);
$table->json('payload');
$table->integer('company_id')->nullable();

$table->actionBy();

$table->timestamps();
$table->softDeletes();

$table->unique(['name', 'company_id']);
});
}
};
39 changes: 39 additions & 0 deletions database/migrations/create_tag_tables.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::create('tags', function (Blueprint $table) {
$table->id();

$table->json('name');
$table->json('slug');
$table->string('type')->nullable();
$table->integer('order_column')->nullable();
$table->integer('company_id')->nullable();

$table->actionBy();
$table->timestamps();
$table->softDeletes();
});

Schema::create('taggables', function (Blueprint $table) {
$table->foreignId('tag_id')->constrained()->cascadeOnDelete();

$table->morphs('taggable');

$table->unique(['tag_id', 'taggable_id', 'taggable_type']);
});
}

public function down(): void
{
Schema::dropIfExists('taggables');
Schema::dropIfExists('tags');
}
};
7 changes: 0 additions & 7 deletions docs/_index.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/filament.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/getting-started/_index.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/getting-started/assets.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/getting-started/changelog.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/getting-started/configuration.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/getting-started/installation.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/getting-started/setup.md

This file was deleted.

Loading

0 comments on commit 3249f89

Please sign in to comment.