/formbuilder

HTML and Form Builder for the Laravel Framework

Primary LanguagePHP

Formbuilder

Latest Version on Packagist Software License Build Status Total Downloads

HTML and Form Builder for the Laravel Framework

How to use

<div class="col-md-6">

        {{ Formbuilder::title('Edit User', 'h2') }}

        {{ Formbuilder::open(route('form1.post'), 'post') }}

            {{ csrf_field() }}

            {{ Formbuilder::text(
                "full_name",
                old('full_name', $user->get('full_name')),
                "Full Name",
                "Max Mustermann")
            }}

            {{ Formbuilder::text(
                "username",
                old('username', $user->get('username')),
                "Username",
                "mmustermann")
            }}

            {{ Formbuilder::email(
                "email",
                old('email', $user->get('email')),
                "Email",
                "max@mustermann.de")
            }}

            {{ Formbuilder::password(
                "password",
                '',
                "Password",
                "your-secret-password")
            }}

            {{ Formbuilder::password(
                "password_repeat",
                '',
                "Password Repeat",
                "your-secret-password")
            }}

            {{ Formbuilder::buttons(
                route('home'))
            }}

        {{ Formbuilder::close() }}

    </div>