Skip to content

Missing CSS Classes (like "form-control") #226

@MrReed

Description

@MrReed

After upgrading from Laravel 5.4 to 5.5 i had an issue with missing bootstrap classes like "form-control" for a text input field. Everything else seems to work properly. After testing around i ended up by renaming my aliases in config/app.php for bootstrapper from

'Form' => 'Bootstrapper\Facades\Form',

to

'FormStrapper' => 'Bootstrapper\Facades\Form',

and changed my blade markup from

{!! Form::email('email', Input::old('email'), ['placeholder' => 'Email', 'class' => 'input-lg']) !!}

to

{!! FormStrapper::email('email', Input::old('email'), ['placeholder' => 'Email', 'class' => 'input-lg']) !!}

This only in case someone else have this problem. I fixed all my blades by auto replacing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions