Welcome Guest, Not a member yet? Register   Sign In
SHIELD - Table name
#5

(This post was last modified: 01-06-2023, 07:42 AM by superior.)

I agree with @nfaiz, a better approach would be a configurable option before running setup.
Not just for teamwork but you also might be using the same name(s) that can cause conflicts.

I think writing this in the Auth config would be a good place, as it contains the view override as well.

PHP Code:
/**
 * --------------------------------------------------------------------
 * Shield Tables
 * --------------------------------------------------------------------
 *
 */
public array $table = [
    'groups_users'      => 'auth_groups_users',
    'identities'        => 'auth_identities',
    'logins'            => 'auth_logins',
    'permissions_users' => 'auth_permissions_users',
    'remember_tokens'   => 'auth_remember_tokens',
    'token_logins'      => 'auth_token_logins',
];

// Example usage:
config('Auth')->table['groups_users']; 
Reply


Messages In This Thread
SHIELD - Table name - by nfaiz - 06-30-2022, 07:17 PM
RE: SHIELD - Table name - by datamweb - 08-02-2022, 06:10 PM
RE: SHIELD - Table name - by nfaiz - 01-06-2023, 06:28 AM
RE: SHIELD - Table name - by nfaiz - 08-07-2022, 07:48 AM
RE: SHIELD - Table name - by superior - 01-06-2023, 07:31 AM
RE: SHIELD - Table name - by InsiteFX - 01-07-2023, 12:38 AM
RE: SHIELD - Table name - by kenjis - 01-07-2023, 01:32 AM
RE: SHIELD - Table name - by nfaiz - 01-09-2023, 09:17 PM
RE: SHIELD - Table name - by kenjis - 02-12-2023, 11:52 PM
RE: SHIELD - Table name - by nfaiz - 02-13-2023, 01:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB