How to delete s suffix in module from laraadmin (in Module Name and DB table name) - Laravel Project
up vote
0
down vote
favorite
I have a laraadmin project.
But; laraadmin puts the s suffix of module names and module db tables.
Example.
I created new module. This module name is : "setting"
if i create module from this name, then the module name becomes the settings.
I want to remove it.(s suffix)
auto complete suffix s laraadmin
add a comment |
up vote
0
down vote
favorite
I have a laraadmin project.
But; laraadmin puts the s suffix of module names and module db tables.
Example.
I created new module. This module name is : "setting"
if i create module from this name, then the module name becomes the settings.
I want to remove it.(s suffix)
auto complete suffix s laraadmin
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a laraadmin project.
But; laraadmin puts the s suffix of module names and module db tables.
Example.
I created new module. This module name is : "setting"
if i create module from this name, then the module name becomes the settings.
I want to remove it.(s suffix)
auto complete suffix s laraadmin
I have a laraadmin project.
But; laraadmin puts the s suffix of module names and module db tables.
Example.
I created new module. This module name is : "setting"
if i create module from this name, then the module name becomes the settings.
I want to remove it.(s suffix)
auto complete suffix s laraadmin
auto complete suffix s laraadmin
asked Nov 8 at 13:29
Salih ÖNDER
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
i solved this problem.
find in project dir :
....vendordwijlaraadminsrcModelsModule.php
find in this file :
public static function generateModuleNames($module_name, $icon) {
$array = array();
$module_name = trim($module_name);
$module_name = str_replace(" ", "_", $module_name);
$array['module'] = ucfirst($module_name); // OLD = $array['module'] = ucfirst(str_plural($module_name));
$array['label'] = ucfirst($module_name); // OLD = ucfirst(str_plural($module_name));
$array['table'] = strtolower($module_name); // OLD = strtolower(str_plural($module_name));
$array['model'] = ucfirst(str_singular($module_name));
$array['fa_icon'] = $icon;
$array['controller'] = $array['module']."Controller";
$array['singular_l'] = strtolower(str_singular($module_name));
$array['singular_c'] = ucfirst(str_singular($module_name));
return (object) $array;
}
get rid of this function : str_plural();
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
i solved this problem.
find in project dir :
....vendordwijlaraadminsrcModelsModule.php
find in this file :
public static function generateModuleNames($module_name, $icon) {
$array = array();
$module_name = trim($module_name);
$module_name = str_replace(" ", "_", $module_name);
$array['module'] = ucfirst($module_name); // OLD = $array['module'] = ucfirst(str_plural($module_name));
$array['label'] = ucfirst($module_name); // OLD = ucfirst(str_plural($module_name));
$array['table'] = strtolower($module_name); // OLD = strtolower(str_plural($module_name));
$array['model'] = ucfirst(str_singular($module_name));
$array['fa_icon'] = $icon;
$array['controller'] = $array['module']."Controller";
$array['singular_l'] = strtolower(str_singular($module_name));
$array['singular_c'] = ucfirst(str_singular($module_name));
return (object) $array;
}
get rid of this function : str_plural();
add a comment |
up vote
0
down vote
i solved this problem.
find in project dir :
....vendordwijlaraadminsrcModelsModule.php
find in this file :
public static function generateModuleNames($module_name, $icon) {
$array = array();
$module_name = trim($module_name);
$module_name = str_replace(" ", "_", $module_name);
$array['module'] = ucfirst($module_name); // OLD = $array['module'] = ucfirst(str_plural($module_name));
$array['label'] = ucfirst($module_name); // OLD = ucfirst(str_plural($module_name));
$array['table'] = strtolower($module_name); // OLD = strtolower(str_plural($module_name));
$array['model'] = ucfirst(str_singular($module_name));
$array['fa_icon'] = $icon;
$array['controller'] = $array['module']."Controller";
$array['singular_l'] = strtolower(str_singular($module_name));
$array['singular_c'] = ucfirst(str_singular($module_name));
return (object) $array;
}
get rid of this function : str_plural();
add a comment |
up vote
0
down vote
up vote
0
down vote
i solved this problem.
find in project dir :
....vendordwijlaraadminsrcModelsModule.php
find in this file :
public static function generateModuleNames($module_name, $icon) {
$array = array();
$module_name = trim($module_name);
$module_name = str_replace(" ", "_", $module_name);
$array['module'] = ucfirst($module_name); // OLD = $array['module'] = ucfirst(str_plural($module_name));
$array['label'] = ucfirst($module_name); // OLD = ucfirst(str_plural($module_name));
$array['table'] = strtolower($module_name); // OLD = strtolower(str_plural($module_name));
$array['model'] = ucfirst(str_singular($module_name));
$array['fa_icon'] = $icon;
$array['controller'] = $array['module']."Controller";
$array['singular_l'] = strtolower(str_singular($module_name));
$array['singular_c'] = ucfirst(str_singular($module_name));
return (object) $array;
}
get rid of this function : str_plural();
i solved this problem.
find in project dir :
....vendordwijlaraadminsrcModelsModule.php
find in this file :
public static function generateModuleNames($module_name, $icon) {
$array = array();
$module_name = trim($module_name);
$module_name = str_replace(" ", "_", $module_name);
$array['module'] = ucfirst($module_name); // OLD = $array['module'] = ucfirst(str_plural($module_name));
$array['label'] = ucfirst($module_name); // OLD = ucfirst(str_plural($module_name));
$array['table'] = strtolower($module_name); // OLD = strtolower(str_plural($module_name));
$array['model'] = ucfirst(str_singular($module_name));
$array['fa_icon'] = $icon;
$array['controller'] = $array['module']."Controller";
$array['singular_l'] = strtolower(str_singular($module_name));
$array['singular_c'] = ucfirst(str_singular($module_name));
return (object) $array;
}
get rid of this function : str_plural();
answered Nov 8 at 17:12
Salih ÖNDER
1
1
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53208751%2fhow-to-delete-s-suffix-in-module-from-laraadmin-in-module-name-and-db-table-nam%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown