make:model with default database values |
I think it's great if the default
Code: php spark make:model If standard codeigniter can't include that feature, is there a way to somehow parse the created model file to add those default values? Thanks.
Please Read:
CodeIgniter 4 User Guide - Database Migrations CodeIgniter 4 User Guide - Spark Commands What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(12-10-2022, 12:25 AM)InsiteFX Wrote: Please Read: Thanks @InsiteFX for pointing out how to make new commands. I'm still new to programming and CI4, i'll definitely look after it for better understanding on CI4. But, so i thought why not provide default values on generated Model file when execute this built in command Code: php spark make:model ProductModel --table products PHP Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |