comparison src/Replacer/Replacer.php @ 11:3426c7e91c24 main-dev

Modifying generaters and replacers
author luka
date Wed, 24 Apr 2024 19:53:42 -0400
parents d4730c14806d
children c969ed13c570
comparison
equal deleted inserted replaced
10:a9ff874afdbd 11:3426c7e91c24
87 /** 87 /**
88 * Model variable is standardly just a singular version of the table name. 88 * Model variable is standardly just a singular version of the table name.
89 */ 89 */
90 public function model_variable(string $name): string 90 public function model_variable(string $name): string
91 { 91 {
92 /* return Str::singular($name); */ 92 return Str::singular($name);
93 return 'item'; 93 /* return 'item'; */
94 } 94 }
95 95
96 /** 96 /**
97 * Controller names are generated in uppercase first Camel case 97 * Controller names are generated in uppercase first Camel case
98 * and wrapped in the prefix and suffix. 98 * and wrapped in the prefix and suffix.