|
@@ -821,7 +821,7 @@ class Field implements Renderable
|
|
|
public function placeholder($placeholder = null)
|
|
|
{
|
|
|
if ($placeholder === null) {
|
|
|
- return $this->placeholder ?: trans('admin.input').' '.$this->label;
|
|
|
+ return $this->placeholder ?: $this->defaultPlaceholder();
|
|
|
}
|
|
|
|
|
|
$this->placeholder = $placeholder;
|
|
@@ -829,6 +829,14 @@ class Field implements Renderable
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ protected function defaultPlaceholder()
|
|
|
+ {
|
|
|
+ return trans('admin.input').' '.$this->label;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @param mixed $value
|
|
|
*
|