update
This commit is contained in:
parent
014172d525
commit
fb7c1c5314
6 changed files with 30 additions and 30 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace App\Filament\Resources;
|
||||
|
||||
use App\Filament\Resources\WebsiteResource\Pages;
|
||||
use App\Filament\Resources\WebsiteResource\RelationManagers;
|
||||
use App\Filament\Resources\DomainResource\Pages;
|
||||
use App\Filament\Resources\DomainResource\RelationManagers;
|
||||
use App\Models\Domain;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
|
@ -14,7 +14,7 @@ use Illuminate\Database\Eloquent\Builder;
|
|||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class WebsiteResource extends Resource
|
||||
class DomainResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Domain::class;
|
||||
|
||||
|
@ -41,13 +41,13 @@ class WebsiteResource extends Resource
|
|||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
Tables\Columns\TextColumn::make('hostingPlan.name')
|
||||
->searchable()
|
||||
->sortable(),
|
||||
// Tables\Columns\TextColumn::make('hostingPlan.name')
|
||||
// ->searchable()
|
||||
// ->sortable(),
|
||||
|
||||
Tables\Columns\TextColumn::make('customer.name')
|
||||
->searchable()
|
||||
->sortable(),
|
||||
// Tables\Columns\TextColumn::make('customer.name')
|
||||
// ->searchable()
|
||||
// ->sortable(),
|
||||
|
||||
])
|
||||
->defaultSort('id', 'desc')
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Resources\DomainResource\Pages;
|
||||
|
||||
use App\Filament\Resources\DomainResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateWebsite extends CreateRecord
|
||||
{
|
||||
protected static string $resource = DomainResource::class;
|
||||
}
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Resources\WebsiteResource\Pages;
|
||||
namespace App\Filament\Resources\DomainResource\Pages;
|
||||
|
||||
use App\Filament\Resources\WebsiteResource;
|
||||
use App\Filament\Resources\DomainResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditWebsite extends EditRecord
|
||||
{
|
||||
protected static string $resource = WebsiteResource::class;
|
||||
protected static string $resource = DomainResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Resources\WebsiteResource\Pages;
|
||||
namespace App\Filament\Resources\DomainResource\Pages;
|
||||
|
||||
use App\Filament\Resources\WebsiteResource;
|
||||
use App\Filament\Resources\DomainResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListWebsites extends ListRecords
|
||||
{
|
||||
protected static string $resource = WebsiteResource::class;
|
||||
protected static string $resource = DomainResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
|
@ -1,14 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Resources\WebsiteResource\Pages;
|
||||
namespace App\Filament\Resources\DomainResource\Pages;
|
||||
|
||||
use App\Filament\Resources\WebsiteResource;
|
||||
use App\Filament\Resources\DomainResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewWebsite extends ViewRecord
|
||||
{
|
||||
protected static string $resource = WebsiteResource::class;
|
||||
protected static string $resource = DomainResource::class;
|
||||
|
||||
protected static string $view = 'filament.resources.website.pages.view-website';
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Filament\Resources\WebsiteResource\Pages;
|
||||
|
||||
use App\Filament\Resources\WebsiteResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateWebsite extends CreateRecord
|
||||
{
|
||||
protected static string $resource = WebsiteResource::class;
|
||||
}
|
Loading…
Reference in a new issue