Company Field on Register

Company Field on Register

Laraship QuestionsCategory: TechnicalCompany Field on Register
Vishal Verma asked 3 weeks ago
Hello,

I want to add required company name field while registering user.

Please suggest me the most appropriate way for that?
Thanks

2 Answers
laraship Staff answered 3 weeks ago
Hello,
You can override the login template and add your overridden fields, these fields can be stored inside the properties column. or you can create custom fields for users and append them to the login form
 
Vishal Verma
replied 3 weeks ago

I had created custom field for user model. What are the next steps ?

laraship Staff answered 3 weeks ago
Hello 
After adding the custom field in the admin dashboard, locate register.blade.php template inside your active theme,  and add the following field 
 

{!! CoralsForm::text('properties[company]','User::attributes.company',true) !!}

where company is your custom field ID and User::attributes.company is the translation
Vishal Verma
replied 3 weeks ago

I had created custom field from adminstration menu with field name = company.

and added
{!! CoralsForm::text('properties[company]','User::attributes.company',true) !!}
the above code in register.blade.php and also added company attribute to all 3 attribute files under Corals/core/User/resources/lang

I have tried
select * from properties from users;
and
select * from custom_fields;

But there is no company field.

Vishal Verma
replied 2 weeks ago

Hello,

Please reply ASAP, hope you are guys working on this.

Thanks.

laraship
Staff replied 2 weeks ago

Hello,

You need to handle the passed data from the registration form and save it, from the registration controller, if you’re interested in custom development, we can add this feature for 3 hours of development.

70% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link