Goros
Goros
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
Okay thank you it is fix now 🙏
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
but its conflicting with something
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
i want numbered pagination
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
No description
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
Oh sorry
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
here is the code:
public static function table(Table $table): Table
{
return $table
->modifyQueryUsing(function (Builder $query) {
$query->selectRaw("
*,
CONCAT_WS(' & ',
CASE WHEN sellable THEN 'Sellable' END,
CASE WHEN purchaseable THEN 'Purchasable' END
) AS attributes
");

$query->where('company_id', auth()->user()->current_company_id);
})
->columns([
TextColumn::make('name')
->label('Name')
->searchable(),
TextColumn::make('company.name')
->label('Company Name'),
TextColumn::make('attributes')
->label('Attributes')
->badge(),
TextColumn::make('price')
->money('USD')
->sortable(),
TextColumn::make('stock_quantity')
->label('Stock Quantity')
->sortable(),
TextColumn::make('sku')
->label('SKU'),
TextColumn::make('is_in_stock')
->label('In Stock')
->state(fn ($record) => $record->is_in_stock > 0 ? 'In Stock' : 'Out of Stock'),
// Add expiry_date column
TextColumn::make('expiry_date')
->label('Expiry Date')
->sortable()
->dateTime()
->date(),
])
->deferLoading() // Tables with lot of data may take time to load, which case we use this to load the table data asynchronously
->striped()
->filters([/* your filters here */])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([/* your bulk actions here */]);
}
public static function table(Table $table): Table
{
return $table
->modifyQueryUsing(function (Builder $query) {
$query->selectRaw("
*,
CONCAT_WS(' & ',
CASE WHEN sellable THEN 'Sellable' END,
CASE WHEN purchaseable THEN 'Purchasable' END
) AS attributes
");

$query->where('company_id', auth()->user()->current_company_id);
})
->columns([
TextColumn::make('name')
->label('Name')
->searchable(),
TextColumn::make('company.name')
->label('Company Name'),
TextColumn::make('attributes')
->label('Attributes')
->badge(),
TextColumn::make('price')
->money('USD')
->sortable(),
TextColumn::make('stock_quantity')
->label('Stock Quantity')
->sortable(),
TextColumn::make('sku')
->label('SKU'),
TextColumn::make('is_in_stock')
->label('In Stock')
->state(fn ($record) => $record->is_in_stock > 0 ? 'In Stock' : 'Out of Stock'),
// Add expiry_date column
TextColumn::make('expiry_date')
->label('Expiry Date')
->sortable()
->dateTime()
->date(),
])
->deferLoading() // Tables with lot of data may take time to load, which case we use this to load the table data asynchronously
->striped()
->filters([/* your filters here */])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([/* your bulk actions here */]);
}
17 replies
FFilament
Created by Mikey on 12/4/2024 in #❓┊help
Show Result and Number of Pagination Not Show
@LeandroFerreira I'm also having the same issue I'm using resource not a custom page
17 replies
FFilament
Created by Goros on 7/13/2024 in #❓┊help
Class SpatieMediaLibraryFileUpload & SpatieMediaLibraryImageColumn not found
it worked thanks
8 replies
FFilament
Created by Goros on 7/13/2024 in #❓┊help
Class SpatieMediaLibraryFileUpload & SpatieMediaLibraryImageColumn not found
this loads an error
Problem 1
- filament/filament is locked to version v3.2.93 and an update of this package was not requested.
- anourvalar/eloquent-serialize 1.2.23 requires laravel/framework ^8.0|^9.0|^10.0|^11.0 -> satisfiable by laravel/framework[v11.9.0, ..., v11.15.0].
- Only one of these can be installed: illuminate/support[v10.33.0, ..., v10.48.16, v11.0.0, ..., v11.15.0], laravel/framework[v11.9.0, ..., v11.15.0]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
- filament/actions v3.2.93 requires anourvalar/eloquent-serialize ^1.2 -> satisfiable by anourvalar/eloquent-serialize[1.2.23].
- filament/spatie-laravel-media-library-plugin v3.2.0 requires illuminate/support ^10.0 -> satisfiable by illuminate/support[v10.0.0, ..., v10.48.16].
- filament/filament v3.2.93 requires filament/actions v3.2.93 -> satisfiable by filament/actions[v3.2.93].
- Root composer.json requires filament/spatie-laravel-media-library-plugin 3.2 -> satisfiable by filament/spatie-laravel-media-library-plugin[v3.2.0].
Problem 1
- filament/filament is locked to version v3.2.93 and an update of this package was not requested.
- anourvalar/eloquent-serialize 1.2.23 requires laravel/framework ^8.0|^9.0|^10.0|^11.0 -> satisfiable by laravel/framework[v11.9.0, ..., v11.15.0].
- Only one of these can be installed: illuminate/support[v10.33.0, ..., v10.48.16, v11.0.0, ..., v11.15.0], laravel/framework[v11.9.0, ..., v11.15.0]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
- filament/actions v3.2.93 requires anourvalar/eloquent-serialize ^1.2 -> satisfiable by anourvalar/eloquent-serialize[1.2.23].
- filament/spatie-laravel-media-library-plugin v3.2.0 requires illuminate/support ^10.0 -> satisfiable by illuminate/support[v10.0.0, ..., v10.48.16].
- filament/filament v3.2.93 requires filament/actions v3.2.93 -> satisfiable by filament/actions[v3.2.93].
- Root composer.json requires filament/spatie-laravel-media-library-plugin 3.2 -> satisfiable by filament/spatie-laravel-media-library-plugin[v3.2.0].
8 replies