app/View/Components/Forms/User.php
<?php
namespace App\View\Components\Forms;
use App\View\Forms\UserForm;
use Illuminate\View\Component;
class User extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return app(UserForm::class)->edit(auth()->user())->render();
}
}