Skip to content

Commit

Permalink
Changes to files: app/Filament/Resources/ExpenseResource.php
Browse files Browse the repository at this point in the history
app/Filament/Resources/ItemRateResource.php
app/Filament/Resources/ItemResource.php
app/Providers/ExpenseServiceProvider.php
database/migrations/2024_09_03_133030_add_deleted_at_to_expense_expense_table.php
database/migrations/2024_09_03_133039_add_deleted_at_to_expense_item_table.php
database/migrations/2024_09_03_133046_add_deleted_at_to_expense_item_rate_table.php
  • Loading branch information
dedanirungu committed Sep 4, 2024
1 parent dc41bb9 commit 845030f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
10 changes: 6 additions & 4 deletions app/Filament/Resources/ExpenseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

namespace Modules\Expense\Filament\Resources;

use Modules\Expense\Filament\Resources\ExpenseResource\Pages;
use Modules\Expense\Filament\Resources\ExpenseResource\RelationManagers;
use Modules\Expense\Models\Expense;
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\Expense\Filament\Resources\ExpenseResource\Pages;
use Modules\Expense\Models\Expense;

class ExpenseResource extends Resource
{
protected static ?string $model = Expense::class;

protected static ?string $slug = 'expense/expense';

protected static ?string $navigationGroup = 'Expense';

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

namespace Modules\Expense\Filament\Resources;

use Modules\Expense\Filament\Resources\ItemRateResource\Pages;
use Modules\Expense\Filament\Resources\ItemRateResource\RelationManagers;
use Modules\Expense\Models\ItemRate;
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\Expense\Filament\Resources\ItemRateResource\Pages;
use Modules\Expense\Models\ItemRate;

class ItemRateResource extends Resource
{
protected static ?string $model = ItemRate::class;

protected static ?string $slug = 'expense/item/rate';

protected static ?string $navigationGroup = 'Expense';

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

namespace Modules\Expense\Filament\Resources;

use Modules\Expense\Filament\Resources\ItemResource\Pages;
use Modules\Expense\Filament\Resources\ItemResource\RelationManagers;
use Modules\Expense\Models\Item;
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\Expense\Filament\Resources\ItemResource\Pages;
use Modules\Expense\Models\Item;

class ItemResource extends Resource
{
protected static ?string $model = Item::class;

protected static ?string $slug = 'expense/item';

protected static ?string $navigationGroup = 'Expense';

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

protected string $moduleNameLower = 'Expense';
protected string $moduleNameLower = 'expense';

/**
* 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('expense_expense', 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('expense_item', 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('expense_item_rate', function (Blueprint $table) {
$table->dropColumn('deleted_at');
$table->dropColumn('deleted_at');
});
}
}
};

0 comments on commit 845030f

Please sign in to comment.