mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
wip
This commit is contained in:
@@ -58,7 +58,7 @@ trait HasForm
|
||||
}
|
||||
}
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class Login extends Component
|
||||
|
||||
public $remember = false;
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
|
||||
@@ -17,7 +17,7 @@ class RequestPassword extends Component
|
||||
|
||||
public $email;
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
|
||||
@@ -25,7 +25,7 @@ class ResetPassword extends Component
|
||||
|
||||
public $user;
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
|
||||
@@ -18,7 +18,7 @@ class EditAccount extends Page
|
||||
|
||||
public static $view = 'filament::edit-account';
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return static::getResource()::form(
|
||||
$form->model(static::getModel()),
|
||||
|
||||
@@ -8,7 +8,7 @@ trait HasForm
|
||||
{
|
||||
use \Filament\Forms\HasForm;
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ class CreateRecord extends Page
|
||||
];
|
||||
}
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return static::getResource()::form(
|
||||
$form->model(static::getModel()),
|
||||
|
||||
@@ -57,7 +57,7 @@ class EditRecord extends Page
|
||||
];
|
||||
}
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return static::getResource()::form(
|
||||
$form->model(static::getModel()),
|
||||
|
||||
@@ -43,7 +43,7 @@ class AttachRecord extends Component
|
||||
$this->related = null;
|
||||
}
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
|
||||
@@ -46,7 +46,7 @@ class CreateRecord extends Component
|
||||
$this->fillWithFormDefaults();
|
||||
}
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $this->manager::form(
|
||||
$form->model(get_class($this->owner->{$this->getRelationship()}()->getModel())),
|
||||
|
||||
@@ -28,7 +28,7 @@ class EditRecord extends Component
|
||||
'switchRelationManagerEditRecord' => 'switchRecord',
|
||||
];
|
||||
|
||||
public function form(Form $form)
|
||||
protected function form(Form $form)
|
||||
{
|
||||
return $this->manager::form($form->model(get_class($this->owner->{$this->getRelationship()}()->getModel())));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user