Add filament

This commit is contained in:
Russ Long 2022-08-06 15:39:24 -04:00
parent a3f751e8fa
commit f54e41aef9
46 changed files with 2419 additions and 4 deletions

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\BiddersResource\Pages;
use App\Filament\Resources\BiddersResource\RelationManagers;
use App\Models\Bidders;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class BiddersResource extends Resource
{
protected static ?string $model = Bidders::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListBidders::route('/'),
'create' => Pages\CreateBidders::route('/create'),
'edit' => Pages\EditBidders::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\BiddersResource\Pages;
use App\Filament\Resources\BiddersResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateBidders extends CreateRecord
{
protected static string $resource = BiddersResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\BiddersResource\Pages;
use App\Filament\Resources\BiddersResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditBidders extends EditRecord
{
protected static string $resource = BiddersResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\BiddersResource\Pages;
use App\Filament\Resources\BiddersResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListBidders extends ListRecords
{
protected static string $resource = BiddersResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,54 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\CarShowCategoryResource\Pages;
use App\Filament\Resources\CarShowCategoryResource\RelationManagers;
use App\Models\CarShowCategory;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class CarShowCategoryResource extends Resource
{
protected static ?string $model = CarShowCategory::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getPages(): array
{
return [
'index' => Pages\ManageCarShowCategories::route('/'),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\CarShowCategoryResource\Pages;
use App\Filament\Resources\CarShowCategoryResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ManageRecords;
class ManageCarShowCategories extends ManageRecords
{
protected static string $resource = CarShowCategoryResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\CarShowWinnerResource\Pages;
use App\Filament\Resources\CarShowWinnerResource\RelationManagers;
use App\Models\CarShowWinner;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class CarShowWinnerResource extends Resource
{
protected static ?string $model = CarShowWinner::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListCarShowWinners::route('/'),
'create' => Pages\CreateCarShowWinner::route('/create'),
'edit' => Pages\EditCarShowWinner::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\CarShowWinnerResource\Pages;
use App\Filament\Resources\CarShowWinnerResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateCarShowWinner extends CreateRecord
{
protected static string $resource = CarShowWinnerResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\CarShowWinnerResource\Pages;
use App\Filament\Resources\CarShowWinnerResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditCarShowWinner extends EditRecord
{
protected static string $resource = CarShowWinnerResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\CarShowWinnerResource\Pages;
use App\Filament\Resources\CarShowWinnerResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListCarShowWinners extends ListRecords
{
protected static string $resource = CarShowWinnerResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\CheckoutResource\Pages;
use App\Filament\Resources\CheckoutResource\RelationManagers;
use App\Models\Checkout;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class CheckoutResource extends Resource
{
protected static ?string $model = Checkout::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListCheckouts::route('/'),
'create' => Pages\CreateCheckout::route('/create'),
'edit' => Pages\EditCheckout::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\CheckoutResource\Pages;
use App\Filament\Resources\CheckoutResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateCheckout extends CreateRecord
{
protected static string $resource = CheckoutResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\CheckoutResource\Pages;
use App\Filament\Resources\CheckoutResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditCheckout extends EditRecord
{
protected static string $resource = CheckoutResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\CheckoutResource\Pages;
use App\Filament\Resources\CheckoutResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListCheckouts extends ListRecords
{
protected static string $resource = CheckoutResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\ItemsResource\Pages;
use App\Filament\Resources\ItemsResource\RelationManagers;
use App\Models\Items;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class ItemsResource extends Resource
{
protected static ?string $model = Items::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListItems::route('/'),
'create' => Pages\CreateItems::route('/create'),
'edit' => Pages\EditItems::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\ItemsResource\Pages;
use App\Filament\Resources\ItemsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateItems extends CreateRecord
{
protected static string $resource = ItemsResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\ItemsResource\Pages;
use App\Filament\Resources\ItemsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditItems extends EditRecord
{
protected static string $resource = ItemsResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\ItemsResource\Pages;
use App\Filament\Resources\ItemsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListItems extends ListRecords
{
protected static string $resource = ItemsResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\JudgesResource\Pages;
use App\Filament\Resources\JudgesResource\RelationManagers;
use App\Models\Judges;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class JudgesResource extends Resource
{
protected static ?string $model = Judges::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListJudges::route('/'),
'create' => Pages\CreateJudges::route('/create'),
'edit' => Pages\EditJudges::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\JudgesResource\Pages;
use App\Filament\Resources\JudgesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateJudges extends CreateRecord
{
protected static string $resource = JudgesResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\JudgesResource\Pages;
use App\Filament\Resources\JudgesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditJudges extends EditRecord
{
protected static string $resource = JudgesResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\JudgesResource\Pages;
use App\Filament\Resources\JudgesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListJudges extends ListRecords
{
protected static string $resource = JudgesResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\PaymentMethodsResource\Pages;
use App\Filament\Resources\PaymentMethodsResource\RelationManagers;
use App\Models\PaymentMethods;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class PaymentMethodsResource extends Resource
{
protected static ?string $model = PaymentMethods::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListPaymentMethods::route('/'),
'create' => Pages\CreatePaymentMethods::route('/create'),
'edit' => Pages\EditPaymentMethods::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\PaymentMethodsResource\Pages;
use App\Filament\Resources\PaymentMethodsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreatePaymentMethods extends CreateRecord
{
protected static string $resource = PaymentMethodsResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\PaymentMethodsResource\Pages;
use App\Filament\Resources\PaymentMethodsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditPaymentMethods extends EditRecord
{
protected static string $resource = PaymentMethodsResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\PaymentMethodsResource\Pages;
use App\Filament\Resources\PaymentMethodsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListPaymentMethods extends ListRecords
{
protected static string $resource = PaymentMethodsResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\PeoplesChoiceResource\Pages;
use App\Filament\Resources\PeoplesChoiceResource\RelationManagers;
use App\Models\PeoplesChoice;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class PeoplesChoiceResource extends Resource
{
protected static ?string $model = PeoplesChoice::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListPeoplesChoices::route('/'),
'create' => Pages\CreatePeoplesChoice::route('/create'),
'edit' => Pages\EditPeoplesChoice::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\PeoplesChoiceResource\Pages;
use App\Filament\Resources\PeoplesChoiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreatePeoplesChoice extends CreateRecord
{
protected static string $resource = PeoplesChoiceResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\PeoplesChoiceResource\Pages;
use App\Filament\Resources\PeoplesChoiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditPeoplesChoice extends EditRecord
{
protected static string $resource = PeoplesChoiceResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\PeoplesChoiceResource\Pages;
use App\Filament\Resources\PeoplesChoiceResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListPeoplesChoices extends ListRecords
{
protected static string $resource = PeoplesChoiceResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\VehicleScoresResource\Pages;
use App\Filament\Resources\VehicleScoresResource\RelationManagers;
use App\Models\VehicleScores;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class VehicleScoresResource extends Resource
{
protected static ?string $model = VehicleScores::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListVehicleScores::route('/'),
'create' => Pages\CreateVehicleScores::route('/create'),
'edit' => Pages\EditVehicleScores::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\VehicleScoresResource\Pages;
use App\Filament\Resources\VehicleScoresResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateVehicleScores extends CreateRecord
{
protected static string $resource = VehicleScoresResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\VehicleScoresResource\Pages;
use App\Filament\Resources\VehicleScoresResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditVehicleScores extends EditRecord
{
protected static string $resource = VehicleScoresResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\VehicleScoresResource\Pages;
use App\Filament\Resources\VehicleScoresResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListVehicleScores extends ListRecords
{
protected static string $resource = VehicleScoresResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\VehiclesResource\Pages;
use App\Filament\Resources\VehiclesResource\RelationManagers;
use App\Models\Vehicles;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class VehiclesResource extends Resource
{
protected static ?string $model = Vehicles::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListVehicles::route('/'),
'create' => Pages\CreateVehicles::route('/create'),
'edit' => Pages\EditVehicles::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\VehiclesResource\Pages;
use App\Filament\Resources\VehiclesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateVehicles extends CreateRecord
{
protected static string $resource = VehiclesResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\VehiclesResource\Pages;
use App\Filament\Resources\VehiclesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditVehicles extends EditRecord
{
protected static string $resource = VehiclesResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\VehiclesResource\Pages;
use App\Filament\Resources\VehiclesResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListVehicles extends ListRecords
{
protected static string $resource = VehiclesResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -0,0 +1,62 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\WinningBidsResource\Pages;
use App\Filament\Resources\WinningBidsResource\RelationManagers;
use App\Models\WinningBids;
use Filament\Forms;
use Filament\Resources\Form;
use Filament\Resources\Resource;
use Filament\Resources\Table;
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class WinningBidsResource extends Resource
{
protected static ?string $model = WinningBids::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListWinningBids::route('/'),
'create' => Pages\CreateWinningBids::route('/create'),
'edit' => Pages\EditWinningBids::route('/{record}/edit'),
];
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\WinningBidsResource\Pages;
use App\Filament\Resources\WinningBidsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateWinningBids extends CreateRecord
{
protected static string $resource = WinningBidsResource::class;
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\WinningBidsResource\Pages;
use App\Filament\Resources\WinningBidsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;
class EditWinningBids extends EditRecord
{
protected static string $resource = WinningBidsResource::class;
protected function getActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\WinningBidsResource\Pages;
use App\Filament\Resources\WinningBidsResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\ListRecords;
class ListWinningBids extends ListRecords
{
protected static string $resource = WinningBidsResource::class;
protected function getActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View File

@ -4,8 +4,10 @@ namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Filament\Models\Contracts\FilamentUser;
use Filament\Models\Contracts\HasName;
class User extends Authenticatable
class User extends Authenticatable implements FilamentUser,HasName
{
use Notifiable;
@ -26,4 +28,12 @@ class User extends Authenticatable
protected $hidden = [
'password', 'remember_token',
];
public function canAccessFilament(): bool
{
return str_ends_with($this->email, '@tfmm.co');
}
public function getFilamentName(): string
{
return "{$this->name}";
}
}

View File

@ -9,6 +9,7 @@
"barryvdh/laravel-debugbar": "^3.7",
"barryvdh/laravel-snappy": "^1.0",
"carlos-meneses/laravel-mpdf": "^2.1",
"filament/filament": "^2.0",
"laravel/framework": "^9.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^3.0"
@ -51,7 +52,8 @@
"Illuminate\\Foundation\\ComposerScripts::postInstall"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate"
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"@php artisan filament:upgrade"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",

920
composer.lock generated
View File

@ -4,8 +4,76 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "78c1d4a38cb38e74848e06315bec050d",
"content-hash": "c3b4a6c8d022e7160d26e4a00b921a2b",
"packages": [
{
"name": "akaunting/laravel-money",
"version": "3.1.2",
"source": {
"type": "git",
"url": "https://github.com/akaunting/laravel-money.git",
"reference": "cbc66d1dc457c169f6081e0ae6c661b499dad301"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/akaunting/laravel-money/zipball/cbc66d1dc457c169f6081e0ae6c661b499dad301",
"reference": "cbc66d1dc457c169f6081e0ae6c661b499dad301",
"shasum": ""
},
"require": {
"illuminate/contracts": "^8.67|^9.0",
"illuminate/support": "^8.67|^9.0",
"illuminate/view": "^8.67|^9.0",
"php": "^8.0",
"vlucas/phpdotenv": "^5.4.1"
},
"require-dev": {
"orchestra/testbench": "^6.23|^7.4",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.23"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Akaunting\\Money\\Provider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Akaunting\\Money\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Denis Duliçi",
"email": "info@akaunting.com",
"homepage": "https://akaunting.com",
"role": "Developer"
}
],
"description": "Currency formatting and conversion package for Laravel",
"keywords": [
"convert",
"currency",
"format",
"laravel",
"money"
],
"support": {
"issues": "https://github.com/akaunting/laravel-money/issues",
"source": "https://github.com/akaunting/laravel-money/tree/3.1.2"
},
"time": "2022-07-27T08:16:36+00:00"
},
{
"name": "barryvdh/laravel-debugbar",
"version": "v3.7.0",
@ -168,6 +236,156 @@
],
"time": "2022-01-29T19:36:49+00:00"
},
{
"name": "blade-ui-kit/blade-heroicons",
"version": "1.3.1",
"source": {
"type": "git",
"url": "https://github.com/blade-ui-kit/blade-heroicons.git",
"reference": "a2749abc7b8eb6149ff643ffa99a3d33a2de7961"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/blade-ui-kit/blade-heroicons/zipball/a2749abc7b8eb6149ff643ffa99a3d33a2de7961",
"reference": "a2749abc7b8eb6149ff643ffa99a3d33a2de7961",
"shasum": ""
},
"require": {
"blade-ui-kit/blade-icons": "^1.1",
"illuminate/support": "^8.0|^9.0",
"php": "^7.4|^8.0"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"BladeUI\\Heroicons\\BladeHeroiconsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"BladeUI\\Heroicons\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Dries Vints",
"homepage": "https://driesvints.com"
}
],
"description": "A package to easily make use of Heroicons in your Laravel Blade views.",
"homepage": "https://github.com/blade-ui-kit/blade-heroicons",
"keywords": [
"Heroicons",
"blade",
"laravel"
],
"support": {
"issues": "https://github.com/blade-ui-kit/blade-heroicons/issues",
"source": "https://github.com/blade-ui-kit/blade-heroicons/tree/1.3.1"
},
"funding": [
{
"url": "https://github.com/caneco",
"type": "github"
},
{
"url": "https://github.com/driesvints",
"type": "github"
}
],
"time": "2022-03-02T11:50:13+00:00"
},
{
"name": "blade-ui-kit/blade-icons",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/blade-ui-kit/blade-icons.git",
"reference": "57a7c41e1e79e38aed029d3e6ae690b04344c99e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/blade-ui-kit/blade-icons/zipball/57a7c41e1e79e38aed029d3e6ae690b04344c99e",
"reference": "57a7c41e1e79e38aed029d3e6ae690b04344c99e",
"shasum": ""
},
"require": {
"illuminate/contracts": "^8.0|^9.0",
"illuminate/filesystem": "^8.0|^9.0",
"illuminate/support": "^8.0|^9.0",
"illuminate/view": "^8.0|^9.0",
"php": "^7.4|^8.0",
"symfony/console": "^5.3|^6.0",
"symfony/finder": "^5.3|^6.0"
},
"require-dev": {
"mockery/mockery": "^1.3",
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^9.0"
},
"bin": [
"bin/blade-icons-generate"
],
"type": "library",
"extra": {
"laravel": {
"providers": [
"BladeUI\\Icons\\BladeIconsServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"BladeUI\\Icons\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Dries Vints",
"homepage": "https://driesvints.com"
}
],
"description": "A package to easily make use of icons in your Laravel Blade views.",
"homepage": "https://github.com/blade-ui-kit/blade-icons",
"keywords": [
"blade",
"icons",
"laravel",
"svg"
],
"support": {
"issues": "https://github.com/blade-ui-kit/blade-icons/issues",
"source": "https://github.com/blade-ui-kit/blade-icons"
},
"funding": [
{
"url": "https://github.com/caneco",
"type": "github"
},
{
"url": "https://github.com/driesvints",
"type": "github"
}
],
"time": "2022-05-11T12:38:11+00:00"
},
{
"name": "brick/math",
"version": "0.10.1",
@ -274,6 +492,111 @@
},
"time": "2021-08-24T18:53:11+00:00"
},
{
"name": "danharrin/date-format-converter",
"version": "v0.2.0",
"source": {
"type": "git",
"url": "https://github.com/danharrin/date-format-converter.git",
"reference": "ee448ab0cbe2ea36edb886a01670fc760e388f19"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/danharrin/date-format-converter/zipball/ee448ab0cbe2ea36edb886a01670fc760e388f19",
"reference": "ee448ab0cbe2ea36edb886a01670fc760e388f19",
"shasum": ""
},
"require": {
"php": "^7.2|^8.0"
},
"type": "library",
"autoload": {
"files": [
"src/helpers.php",
"src/standards.php"
],
"psr-4": {
"DanHarrin\\DateFormatConverter\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Dan Harrin",
"email": "dan@danharrin.com"
}
],
"description": "Convert token-based date formats between standards.",
"homepage": "https://github.com/danharrin/date-format-converter",
"support": {
"issues": "https://github.com/danharrin/date-format-converter/issues",
"source": "https://github.com/danharrin/date-format-converter"
},
"funding": [
{
"url": "https://github.com/danharrin",
"type": "github"
}
],
"time": "2021-02-10T23:58:47+00:00"
},
{
"name": "danharrin/livewire-rate-limiting",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/danharrin/livewire-rate-limiting.git",
"reference": "b99facf5b607fb0cde92a6f254f437295339f7de"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/b99facf5b607fb0cde92a6f254f437295339f7de",
"reference": "b99facf5b607fb0cde92a6f254f437295339f7de",
"shasum": ""
},
"require": {
"illuminate/support": "^8.0|^9.0",
"php": "^8.0"
},
"require-dev": {
"livewire/livewire": "^2.3",
"orchestra/testbench": "^6.2|^7.0",
"phpunit/phpunit": "^9.4",
"symplify/monorepo-builder": "^9.0"
},
"type": "library",
"autoload": {
"psr-4": {
"DanHarrin\\LivewireRateLimiting\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Dan Harrin",
"email": "dan@danharrin.com"
}
],
"description": "Apply rate limiters to Laravel Livewire actions.",
"homepage": "https://github.com/danharrin/livewire-rate-limiting",
"support": {
"issues": "https://github.com/danharrin/livewire-rate-limiting/issues",
"source": "https://github.com/danharrin/livewire-rate-limiting"
},
"funding": [
{
"url": "https://github.com/danharrin",
"type": "github"
}
],
"time": "2022-01-21T11:26:58+00:00"
},
{
"name": "dflydev/dot-access-data",
"version": "v3.0.1",
@ -645,6 +968,280 @@
],
"time": "2022-06-18T20:57:19+00:00"
},
{
"name": "filament/filament",
"version": "v2.15.13",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/admin.git",
"reference": "1b68e325ce2e7650a77efd1319b7398cf251697c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/admin/zipball/1b68e325ce2e7650a77efd1319b7398cf251697c",
"reference": "1b68e325ce2e7650a77efd1319b7398cf251697c",
"shasum": ""
},
"require": {
"danharrin/livewire-rate-limiting": "^0.3|^1.0",
"filament/forms": "self.version",
"filament/notifications": "self.version",
"filament/support": "self.version",
"filament/tables": "self.version",
"illuminate/auth": "^8.6|^9.0",
"illuminate/console": "^8.6|^9.0",
"illuminate/contracts": "^8.6|^9.0",
"illuminate/cookie": "^8.6|^9.0",
"illuminate/database": "^8.6|^9.0",
"illuminate/http": "^8.6|^9.0",
"illuminate/routing": "^8.6|^9.0",
"illuminate/session": "^8.6|^9.0",
"illuminate/support": "^8.6|^9.0",
"illuminate/view": "^8.6|^9.0",
"livewire/livewire": "^2.6",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\FilamentServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Filament\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered admin panels.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2022-08-04T21:29:39+00:00"
},
{
"name": "filament/forms",
"version": "v2.15.13",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/forms.git",
"reference": "cdff670578205f43b860d6e5044cfbfb05947dde"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/forms/zipball/cdff670578205f43b860d6e5044cfbfb05947dde",
"reference": "cdff670578205f43b860d6e5044cfbfb05947dde",
"shasum": ""
},
"require": {
"blade-ui-kit/blade-heroicons": "^1.2",
"danharrin/date-format-converter": "^0.2",
"filament/notifications": "self.version",
"filament/support": "self.version",
"illuminate/console": "^8.6|^9.0",
"illuminate/contracts": "^8.6|^9.0",
"illuminate/database": "^8.6|^9.0",
"illuminate/filesystem": "^8.6|^9.0",
"illuminate/support": "^8.6|^9.0",
"illuminate/validation": "^8.6|^9.0",
"illuminate/view": "^8.6|^9.0",
"livewire/livewire": "^2.6",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\Forms\\FormsServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Filament\\Forms\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered forms.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2022-08-04T21:29:34+00:00"
},
{
"name": "filament/notifications",
"version": "v2.15.13",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/notifications.git",
"reference": "fa88922541f4e4b0553213f1c3314739f93f0e04"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/notifications/zipball/fa88922541f4e4b0553213f1c3314739f93f0e04",
"reference": "fa88922541f4e4b0553213f1c3314739f93f0e04",
"shasum": ""
},
"require": {
"blade-ui-kit/blade-heroicons": "^1.2",
"filament/support": "self.version",
"illuminate/contracts": "^8.6|^9.0",
"illuminate/filesystem": "^8.6|^9.0",
"illuminate/support": "^8.6|^9.0",
"livewire/livewire": "^2.6",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\Notifications\\NotificationsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Filament\\Notifications\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered notifications.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2022-08-04T21:29:35+00:00"
},
{
"name": "filament/support",
"version": "v2.15.13",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/support.git",
"reference": "06a1eedf6fbd356082d4da938536746c2cb560c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/support/zipball/06a1eedf6fbd356082d4da938536746c2cb560c0",
"reference": "06a1eedf6fbd356082d4da938536746c2cb560c0",
"shasum": ""
},
"require": {
"illuminate/contracts": "^8.6|^9.0",
"illuminate/support": "^8.6|^9.0",
"illuminate/view": "^8.6|^9.0",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9",
"tgalopin/html-sanitizer": "^1.5"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\Support\\SupportServiceProvider"
]
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Filament\\Support\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Associated helper methods and foundation code for Filament packages.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2022-08-04T21:29:34+00:00"
},
{
"name": "filament/tables",
"version": "v2.15.13",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/tables.git",
"reference": "cd956edf00a1fedfa53266f396530849303bc211"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/tables/zipball/cd956edf00a1fedfa53266f396530849303bc211",
"reference": "cd956edf00a1fedfa53266f396530849303bc211",
"shasum": ""
},
"require": {
"akaunting/laravel-money": "^1.2|^2.0|^3.0",
"blade-ui-kit/blade-heroicons": "^1.2",
"filament/forms": "self.version",
"filament/notifications": "self.version",
"filament/support": "self.version",
"illuminate/console": "^8.6|^9.0",
"illuminate/contracts": "^8.6|^9.0",
"illuminate/database": "^8.6|^9.0",
"illuminate/filesystem": "^8.6|^9.0",
"illuminate/support": "^8.6|^9.0",
"illuminate/view": "^8.6|^9.0",
"livewire/livewire": "^2.6",
"php": "^8.0",
"spatie/laravel-package-tools": "^1.9"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\Tables\\TablesServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Filament\\Tables\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered tables.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2022-08-04T21:29:35+00:00"
},
{
"name": "fruitcake/php-cors",
"version": "v1.2.0",
@ -1554,6 +2151,217 @@
],
"time": "2022-04-17T13:12:02+00:00"
},
{
"name": "league/uri-parser",
"version": "1.4.1",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/uri-parser.git",
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/uri-parser/zipball/671548427e4c932352d9b9279fdfa345bf63fa00",
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00",
"shasum": ""
},
"require": {
"php": ">=7.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"phpstan/phpstan": "^0.9.2",
"phpstan/phpstan-phpunit": "^0.9.4",
"phpstan/phpstan-strict-rules": "^0.9.0",
"phpunit/phpunit": "^6.0"
},
"suggest": {
"ext-intl": "Allow parsing RFC3987 compliant hosts",
"league/uri-schemes": "Allow validating and normalizing URI parsing results"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"League\\Uri\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ignace Nyamagana Butera",
"email": "nyamsprod@gmail.com",
"homepage": "https://nyamsprod.com"
}
],
"description": "userland URI parser RFC 3986 compliant",
"homepage": "https://github.com/thephpleague/uri-parser",
"keywords": [
"parse_url",
"parser",
"rfc3986",
"rfc3987",
"uri",
"url"
],
"support": {
"issues": "https://github.com/thephpleague/uri-parser/issues",
"source": "https://github.com/thephpleague/uri-parser/tree/master"
},
"time": "2018-11-22T07:55:51+00:00"
},
{
"name": "livewire/livewire",
"version": "v2.10.6",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
"reference": "020ad095cf1239138b097d22b584e2701ec3edfb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/020ad095cf1239138b097d22b584e2701ec3edfb",
"reference": "020ad095cf1239138b097d22b584e2701ec3edfb",
"shasum": ""
},
"require": {
"illuminate/database": "^7.0|^8.0|^9.0",
"illuminate/support": "^7.0|^8.0|^9.0",
"illuminate/validation": "^7.0|^8.0|^9.0",
"league/mime-type-detection": "^1.9",
"php": "^7.2.5|^8.0",
"symfony/http-kernel": "^5.0|^6.0"
},
"require-dev": {
"calebporzio/sushi": "^2.1",
"laravel/framework": "^7.0|^8.0|^9.0",
"mockery/mockery": "^1.3.1",
"orchestra/testbench": "^5.0|^6.0|^7.0",
"orchestra/testbench-dusk": "^5.2|^6.0|^7.0",
"phpunit/phpunit": "^8.4|^9.0",
"psy/psysh": "@stable"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Livewire\\LivewireServiceProvider"
],
"aliases": {
"Livewire": "Livewire\\Livewire"
}
}
},
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"Livewire\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Caleb Porzio",
"email": "calebporzio@gmail.com"
}
],
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v2.10.6"
},
"funding": [
{
"url": "https://github.com/livewire",
"type": "github"
}
],
"time": "2022-06-19T02:54:20+00:00"
},
{
"name": "masterminds/html5",
"version": "2.7.5",
"source": {
"type": "git",
"url": "https://github.com/Masterminds/html5-php.git",
"reference": "f640ac1bdddff06ea333a920c95bbad8872429ab"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f640ac1bdddff06ea333a920c95bbad8872429ab",
"reference": "f640ac1bdddff06ea333a920c95bbad8872429ab",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-dom": "*",
"ext-libxml": "*",
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.7-dev"
}
},
"autoload": {
"psr-4": {
"Masterminds\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Matt Butcher",
"email": "technosophos@gmail.com"
},
{
"name": "Matt Farina",
"email": "matt@mattfarina.com"
},
{
"name": "Asmir Mustafic",
"email": "goetas@gmail.com"
}
],
"description": "An HTML5 parser and serializer.",
"homepage": "http://masterminds.github.io/html5-php",
"keywords": [
"HTML5",
"dom",
"html",
"parser",
"querypath",
"serializer",
"xml"
],
"support": {
"issues": "https://github.com/Masterminds/html5-php/issues",
"source": "https://github.com/Masterminds/html5-php/tree/2.7.5"
},
"time": "2021-07-01T14:25:37+00:00"
},
{
"name": "maximebf/debugbar",
"version": "v1.18.0",
@ -2896,6 +3704,65 @@
],
"time": "2021-02-11T11:37:01+00:00"
},
{
"name": "spatie/laravel-package-tools",
"version": "1.12.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-package-tools.git",
"reference": "09f80fa240d44fafb1c70657c74ee44ffa929357"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/09f80fa240d44fafb1c70657c74ee44ffa929357",
"reference": "09f80fa240d44fafb1c70657c74ee44ffa929357",
"shasum": ""
},
"require": {
"illuminate/contracts": "^7.0|^8.0|^9.0",
"php": "^7.4|^8.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"orchestra/testbench": "^5.0|^6.23|^7.0",
"phpunit/phpunit": "^9.4",
"spatie/test-time": "^1.2"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\LaravelPackageTools\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"role": "Developer"
}
],
"description": "Tools for creating Laravel packages",
"homepage": "https://github.com/spatie/laravel-package-tools",
"keywords": [
"laravel-package-tools",
"spatie"
],
"support": {
"issues": "https://github.com/spatie/laravel-package-tools/issues",
"source": "https://github.com/spatie/laravel-package-tools/tree/1.12.1"
},
"funding": [
{
"url": "https://github.com/spatie",
"type": "github"
}
],
"time": "2022-06-28T14:29:26+00:00"
},
{
"name": "symfony/console",
"version": "v6.1.3",
@ -4997,6 +5864,55 @@
],
"time": "2022-07-20T13:46:29+00:00"
},
{
"name": "tgalopin/html-sanitizer",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/tgalopin/html-sanitizer.git",
"reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tgalopin/html-sanitizer/zipball/5d02dcb6f2ea4f505731eac440798caa1b3b0913",
"reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913",
"shasum": ""
},
"require": {
"ext-dom": "*",
"league/uri-parser": "^1.4.1",
"masterminds/html5": "^2.4",
"php": ">=7.1",
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"symfony/var-dumper": "^4.1"
},
"type": "library",
"autoload": {
"psr-4": {
"HtmlSanitizer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Titouan Galopin",
"email": "galopintitouan@gmail.com"
}
],
"description": "Sanitize untrustworthy HTML user input",
"support": {
"issues": "https://github.com/tgalopin/html-sanitizer/issues",
"source": "https://github.com/tgalopin/html-sanitizer/tree/1.5.0"
},
"abandoned": "symfony/html-sanitizer",
"time": "2021-09-14T08:27:50+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
"version": "2.2.4",
@ -7305,5 +8221,5 @@
"php": ">=7.0.0"
},
"platform-dev": [],
"plugin-api-version": "2.0.0"
"plugin-api-version": "2.3.0"
}

294
config/filament.php Normal file
View File

@ -0,0 +1,294 @@
<?php
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Http\Middleware\MirrorConfigToSubpackages;
use Filament\Pages;
use Filament\Widgets;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
return [
/*
|--------------------------------------------------------------------------
| Filament Path
|--------------------------------------------------------------------------
|
| The default is `admin` but you can change it to whatever works best and
| doesn't conflict with the routing in your application.
|
*/
'path' => env('FILAMENT_PATH', 'admin'),
/*
|--------------------------------------------------------------------------
| Filament Core Path
|--------------------------------------------------------------------------
|
| This is the path which Filament will use to load its core routes and assets.
| You may change it if it conflicts with your other routes.
|
*/
'core_path' => env('FILAMENT_CORE_PATH', 'filament'),
/*
|--------------------------------------------------------------------------
| Filament Domain
|--------------------------------------------------------------------------
|
| You may change the domain where Filament should be active. If the domain
| is empty, all domains will be valid.
|
*/
'domain' => env('FILAMENT_DOMAIN'),
/*
|--------------------------------------------------------------------------
| Homepage URL
|--------------------------------------------------------------------------
|
| This is the URL that Filament will redirect the user to when they click
| on the sidebar's header.
|
*/
'home_url' => '/',
/*
|--------------------------------------------------------------------------
| Brand Name
|--------------------------------------------------------------------------
|
| This will be displayed on the login page and in the sidebar's header.
|
*/
'brand' => env('APP_NAME'),
/*
|--------------------------------------------------------------------------
| Auth
|--------------------------------------------------------------------------
|
| This is the configuration that Filament will use to handle authentication
| into the admin panel.
|
*/
'auth' => [
'guard' => env('FILAMENT_AUTH_GUARD', 'web'),
'pages' => [
'login' => \Filament\Http\Livewire\Auth\Login::class,
],
],
/*
|--------------------------------------------------------------------------
| Pages
|--------------------------------------------------------------------------
|
| This is the namespace and directory that Filament will automatically
| register pages from. You may also register pages here.
|
*/
'pages' => [
'namespace' => 'App\\Filament\\Pages',
'path' => app_path('Filament/Pages'),
'register' => [
Pages\Dashboard::class,
],
],
/*
|--------------------------------------------------------------------------
| Resources
|--------------------------------------------------------------------------
|
| This is the namespace and directory that Filament will automatically
| register resources from. You may also register resources here.
|
*/
'resources' => [
'namespace' => 'App\\Filament\\Resources',
'path' => app_path('Filament/Resources'),
'register' => [],
],
/*
|--------------------------------------------------------------------------
| Widgets
|--------------------------------------------------------------------------
|
| This is the namespace and directory that Filament will automatically
| register dashboard widgets from. You may also register widgets here.
|
*/
'widgets' => [
'namespace' => 'App\\Filament\\Widgets',
'path' => app_path('Filament/Widgets'),
'register' => [
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
],
],
/*
|--------------------------------------------------------------------------
| Livewire
|--------------------------------------------------------------------------
|
| This is the namespace and directory that Filament will automatically
| register Livewire components inside.
|
*/
'livewire' => [
'namespace' => 'App\\Filament',
'path' => app_path('Filament'),
],
/*
|--------------------------------------------------------------------------
| Dark mode
|--------------------------------------------------------------------------
|
| By enabling this feature, your users are able to select between a light
| and dark appearance for the admin panel, or let their system decide.
|
*/
'dark_mode' => false,
/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
|
| This is the configuration for the general layout of the admin panel.
|
| You may configure the max content width from `xl` to `7xl`, or `full`
| for no max width.
|
*/
'layout' => [
'actions' => [
'modal' => [
'actions' => [
'alignment' => 'left',
],
],
],
'forms' => [
'actions' => [
'alignment' => 'left',
],
'have_inline_labels' => false,
],
'footer' => [
'should_show_logo' => true,
],
'max_content_width' => null,
'notifications' => [
'vertical_alignment' => 'top',
'alignment' => 'right',
],
'sidebar' => [
'is_collapsible_on_desktop' => false,
'groups' => [
'are_collapsible' => true,
],
'width' => null,
],
],
/*
|--------------------------------------------------------------------------
| Favicon
|--------------------------------------------------------------------------
|
| This is the path to the favicon used for pages in the admin panel.
|
*/
'favicon' => null,
/*
|--------------------------------------------------------------------------
| Default Avatar Provider
|--------------------------------------------------------------------------
|
| This is the service that will be used to retrieve default avatars if one
| has not been uploaded.
|
*/
'default_avatar_provider' => \Filament\AvatarProviders\UiAvatarsProvider::class,
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| This is the storage disk Filament will use to put media. You may use any
| of the disks defined in the `config/filesystems.php`.
|
*/
'default_filesystem_disk' => env('FILAMENT_FILESYSTEM_DRIVER', 'public'),
/*
|--------------------------------------------------------------------------
| Google Fonts
|--------------------------------------------------------------------------
|
| This is the URL for Google Fonts that should be loaded. You may use any
| font, or set to `null` to prevent any Google Fonts from loading.
|
| When using a custom font, you should also set the font family in your
| custom theme's `tailwind.config.js` file.
|
*/
'google_fonts' => 'https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap',
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
|
| You may customise the middleware stack that Filament uses to handle
| requests.
|
*/
'middleware' => [
'auth' => [
Authenticate::class,
],
'base' => [
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DispatchServingFilamentEvent::class,
MirrorConfigToSubpackages::class,
],
],
];