black-bits/formbuilder

HTML and Form Builder for the Laravel Framework

0.0.2 2018-01-24 03:36 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:24 UTC


README

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>