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/ContactResource.php
app/Filament/Resources/GatewayResource.php
app/Filament/Resources/OutgoingResource.php
app/Filament/Resources/SignatureResource.php
app/Filament/Resources/WhitelistResource.php
app/Providers/SmsServiceProvider.php
database/migrations/2024_09_03_140224_add_deleted_at_to_sms_outgong_table.php
  • Loading branch information
dedanirungu committed Sep 4, 2024
1 parent cf2d522 commit 7563119
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 21 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\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\BlacklistResource\Pages;
use Modules\Sms\Filament\Resources\BlacklistResource\RelationManagers;
use Modules\Sms\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\Sms\Filament\Resources\BlacklistResource\Pages;
use Modules\Sms\Models\Blacklist;

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

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

protected static ?string $navigationGroup = 'SMS';

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/ContactResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\ContactResource\Pages;
use Modules\Sms\Filament\Resources\ContactResource\RelationManagers;
use Modules\Sms\Models\Contact;
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\Sms\Filament\Resources\ContactResource\Pages;
use Modules\Sms\Models\Contact;

class ContactResource extends Resource
{
protected static ?string $model = Contact::class;

protected static ?string $slug = 'sms/contact';

protected static ?string $navigationGroup = 'SMS';

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/GatewayResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\GatewayResource\Pages;
use Modules\Sms\Filament\Resources\GatewayResource\RelationManagers;
use Modules\Sms\Models\Gateway;
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\Sms\Filament\Resources\GatewayResource\Pages;
use Modules\Sms\Models\Gateway;

class GatewayResource extends Resource
{
protected static ?string $model = Gateway::class;

protected static ?string $slug = 'sms/gateway';

protected static ?string $navigationGroup = 'SMS';

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/OutgoingResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@

namespace Modules\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\OutgoingResource\Pages;
use Modules\Sms\Filament\Resources\OutgoingResource\RelationManagers;
use Modules\Sms\Models\Outgoing;
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\Sms\Filament\Resources\OutgoingResource\Pages;
use Modules\Sms\Models\Outgoing;

class OutgoingResource extends Resource
{
protected static ?string $model = Outgoing::class;

protected static ?string $slug = 'sms/outgoing';

protected static ?string $navigationGroup = 'SMS';

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\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\SignatureResource\Pages;
use Modules\Sms\Filament\Resources\SignatureResource\RelationManagers;
use Modules\Sms\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\Sms\Filament\Resources\SignatureResource\Pages;
use Modules\Sms\Models\Signature;

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

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

protected static ?string $navigationGroup = 'SMS';

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\Sms\Filament\Resources;

use Modules\Sms\Filament\Resources\WhitelistResource\Pages;
use Modules\Sms\Filament\Resources\WhitelistResource\RelationManagers;
use Modules\Sms\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\Sms\Filament\Resources\WhitelistResource\Pages;
use Modules\Sms\Models\Whitelist;

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

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

protected static ?string $navigationGroup = 'SMS';

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/SmsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SmsServiceProvider extends ServiceProvider
{
protected string $moduleName = 'Sms';

protected string $moduleNameLower = 'Sms';
protected string $moduleNameLower = 'sms';

/**
* Boot the application events.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
public function up(): void
{
Schema::table('sms_outgong', function (Blueprint $table) {
Schema::table('sms_outgoing', function (Blueprint $table) {
$table->softDeletes();
});
}
Expand All @@ -21,7 +21,7 @@ public function up(): void
*/
public function down(): void
{
Schema::table('sms_outgong', function (Blueprint $table) {
Schema::table('sms_outgoing', function (Blueprint $table) {
$table->dropColumn('deleted_at');
});
}
Expand Down

0 comments on commit 7563119

Please sign in to comment.