Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Creating Forms Laravel Collective Forms

Eric Gits   ( User )

Commented 6 years ago

Hi, very new to laravel, and downloaded the Akaunting and was looking at the code and I could not understand the laravel collective form part when creating forms for example


{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}

i could not understand this concept, because i normally use

{!! Form::label('name', 'name:', ['class' => 'control-label']) !!}-label

{!! Form::text('name', old('name'), ['class' => 'form-control input-normal','placeholder' => 'Name']) !!}-text box

anyone who can explain to me the above concept and how it works-(
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}

Thank you

Denis Dulici   ( Admin )

Commented 6 years ago

Hi Eric,


They are components of form package:


https://github.com/akaunting/akaunting/blob/master/app/Providers/FormServiceProvider.php


Regards

Eric Gits   ( User )

Commented 6 years ago

@Denis Dulici thank you for explanation, this what I was looking for

Please login or register to leave a response.

Showing 1 to 3 of 3 discussions