GrafiteInc/Scaffold

View on GitHub
app/View/Components/Forms/User.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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();
    }
}