wyyl/beike/Admin/View/Components/Form/Input.php

25 lines
477 B
PHP

<?php
namespace Beike\Admin\View\Components\Form;
use Illuminate\View\Component;
class Input extends Component
{
public string $name;
public string $title;
public string $value;
public function __construct(string $name, string $title, ?string $value)
{
$this->name = $name;
$this->title = $title;
$this->value = $value ?? '';
}
public function render()
{
return view('admin::components.form.input');
}
}