Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Add table for list Books admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamara committed Nov 5, 2024
1 parent 5e336df commit 908d9b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Filament/Resources/BookResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
use App\Filament\Resources\BookResource\RelationManagers;
use App\Models\V1\Book;
use Filament\Forms;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Columns\TextInputColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
Expand All @@ -31,7 +33,9 @@ public static function table(Table $table): Table
{
return $table
->columns([
//
TextInputColumn::make("slug")->searchable(),
TextInputColumn::make("name")->searchable(),
TextInputColumn::make("cost")->searchable(),
])
->filters([
//
Expand Down

0 comments on commit 908d9b2

Please sign in to comment.