Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add class to form open #82

Open
inpresif opened this issue Aug 12, 2019 · 0 comments
Open

Can't add class to form open #82

inpresif opened this issue Aug 12, 2019 · 0 comments

Comments

@inpresif
Copy link

inpresif commented Aug 12, 2019

I've been trying all sorts of variants, none seem to work?

{!! Form::open()->url(url('/usersettings/'))->multipart()->method('post')->id('usersettings')->idPrefix('usrsettings_')->class('whatever') !!}

The above throws an error:
Call to undefined method NetoJose\Bootstrap4Forms\FormService::class()

This one (or variations) just doesn't add anything:
{!! Form::open(['url' => '/submitform/', 'class' => 'whatevr'] )) !!}

This also gives the same class error by the way:
{!!Form::open()->formInline()!!}

Using LV 5.8 on XAMPP php7+

EDIT: Figured out it needs to be
->attrs(['class' => 'dropzone'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant