Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/BlacklistResource.php
Browse files Browse the repository at this point in the history
app/Filament/Resources/QueueResource.php
app/Filament/Resources/SignatureResource.php
app/Filament/Resources/ThemeResource.php
app/Filament/Resources/WhitelistResource.php
app/Providers/MailServiceProvider.php
database/migrations/2024_09_03_133902_add_deleted_at_to_mailmass_autoresponder_table.php
database/migrations/2024_09_03_133913_add_deleted_at_to_mailmass_campaign_table.php
database/migrations/2024_09_03_133921_add_deleted_at_to_mailmass_group_table.php
database/migrations/2024_09_03_133945_add_deleted_at_to_mail_blacklist_table.php
database/migrations/2024_09_03_133954_add_deleted_at_to_mail_whitelist_table.php
database/migrations/2024_09_03_134017_add_deleted_at_to_mail_contact_table.php
database/migrations/2024_09_03_134027_add_deleted_at_to_mail_queue_table.php
database/migrations/2024_09_03_134037_add_deleted_at_to_mail_signature_table.php
database/migrations/2024_09_03_134047_add_deleted_at_to_mail_theme_table.php
  • Loading branch information
dedanirungu committed Sep 4, 2024
1 parent ac7b095 commit fd2b171
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 34 deletions.
9 changes: 6 additions & 3 deletions app/Filament/Resources/BlacklistResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Mail\Filament\Resources;

use Modules\Mail\Filament\Resources\BlacklistResource\Pages;
use Modules\Mail\Filament\Resources\BlacklistResource\RelationManagers;
use Modules\Mail\Models\Blacklist;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Mail\Filament\Resources\BlacklistResource\Pages;
use Modules\Mail\Models\Blacklist;

class BlacklistResource extends Resource
{
protected static ?string $model = Blacklist::class;

protected static ?string $slug = 'mail/blacklist';

protected static ?string $navigationGroup = 'Mail';

protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';

public static function form(Form $form): Form
Expand Down
9 changes: 6 additions & 3 deletions app/Filament/Resources/QueueResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Mail\Filament\Resources;

use Modules\Mail\Filament\Resources\QueueResource\Pages;
use Modules\Mail\Filament\Resources\QueueResource\RelationManagers;
use Modules\Mail\Models\Queue;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Mail\Filament\Resources\QueueResource\Pages;
use Modules\Mail\Models\Queue;

class QueueResource extends Resource
{
protected static ?string $model = Queue::class;

protected static ?string $slug = 'mail/queue';

protected static ?string $navigationGroup = 'Mail';

protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';

public static function form(Form $form): Form
Expand Down
9 changes: 6 additions & 3 deletions app/Filament/Resources/SignatureResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Mail\Filament\Resources;

use Modules\Mail\Filament\Resources\SignatureResource\Pages;
use Modules\Mail\Filament\Resources\SignatureResource\RelationManagers;
use Modules\Mail\Models\Signature;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Mail\Filament\Resources\SignatureResource\Pages;
use Modules\Mail\Models\Signature;

class SignatureResource extends Resource
{
protected static ?string $model = Signature::class;

protected static ?string $slug = 'mail/signature';

protected static ?string $navigationGroup = 'Mail';

protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';

public static function form(Form $form): Form
Expand Down
9 changes: 6 additions & 3 deletions app/Filament/Resources/ThemeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Mail\Filament\Resources;

use Modules\Mail\Filament\Resources\ThemeResource\Pages;
use Modules\Mail\Filament\Resources\ThemeResource\RelationManagers;
use Modules\Mail\Models\Theme;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Mail\Filament\Resources\ThemeResource\Pages;
use Modules\Mail\Models\Theme;

class ThemeResource extends Resource
{
protected static ?string $model = Theme::class;

protected static ?string $slug = 'mail/theme';

protected static ?string $navigationGroup = 'Mail';

protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';

public static function form(Form $form): Form
Expand Down
9 changes: 6 additions & 3 deletions app/Filament/Resources/WhitelistResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Mail\Filament\Resources;

use Modules\Mail\Filament\Resources\WhitelistResource\Pages;
use Modules\Mail\Filament\Resources\WhitelistResource\RelationManagers;
use Modules\Mail\Models\Whitelist;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Modules\Mail\Filament\Resources\WhitelistResource\Pages;
use Modules\Mail\Models\Whitelist;

class WhitelistResource extends Resource
{
protected static ?string $model = Whitelist::class;

protected static ?string $slug = 'mail/whitelist';

protected static ?string $navigationGroup = 'Mail';

protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';

public static function form(Form $form): Form
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MailServiceProvider extends ServiceProvider
{
protected string $moduleName = 'Mail';

protected string $moduleNameLower = 'Mail';
protected string $moduleNameLower = 'mail';

/**
* Boot the application events.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mailmass_autoresponder', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mailmass_campaign', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mailmass_group', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_blacklist', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_whitelist', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_contact', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_queue', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_signature', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function up(): void
public function down(): void
{
Schema::table('mail_theme', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};

0 comments on commit fd2b171

Please sign in to comment.