refactor: rename schema methods to form and apply consistent code style formatting across Filament pages

This commit is contained in:
Yoga Pangestu 2026-03-30 08:12:21 +07:00
parent 63241349cd
commit 985333436b
7 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ public function getHeading(): string|Htmlable
return ''; return '';
} }
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->components([ ->components([

View File

@ -58,7 +58,7 @@ public function mount(): void
$this->form->fill(); $this->form->fill();
} }
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->schema([ ->schema([

View File

@ -61,7 +61,7 @@ public function mount(): void
]); ]);
} }
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->schema([ ->schema([

View File

@ -15,7 +15,7 @@
class Profile extends EditProfile class Profile extends EditProfile
{ {
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->components([ ->components([

View File

@ -40,7 +40,7 @@ public static function getPagePermission(): string
protected static string $settings = GeneralSettings::class; protected static string $settings = GeneralSettings::class;
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->components([ ->components([

View File

@ -74,7 +74,7 @@ public function sessions(): Collection
]); ]);
} }
public function schema(): array public function form(): array
{ {
return [ return [
Grid::make(['default' => 2]) Grid::make(['default' => 2])

View File

@ -21,7 +21,7 @@ class AttendanceRelationManager extends RelationManager
protected static ?string $title = 'Presensi Mahasiswa'; protected static ?string $title = 'Presensi Mahasiswa';
public function schema(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->components([ ->components([