dwijitsolutions / laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.
http://laraadmin.com
MIT License
1.56k stars 538 forks source link

Required Field on Update #174

Open mustafa-qamaruddin opened 7 years ago

mustafa-qamaruddin commented 7 years ago

I want to specify that a required field on create is not required on update? How is this handled by Lara Admin?

mustafa-qamaruddin commented 7 years ago

I found it in the code of La Form Maker; So just by passing the required2 parameter, it will override default.

public static function input($module, $field_name, $default_val = null, $required2 = null, $class = 'form-control', $params = []) {

if ($required2 != null) { $required = $required2; }