How to change users table

Hi, I have added Statamic V3 in an existing Laravel App. I want to store statamic users in the database, but doesn't want to store statamic users in the users table (already reserved for an other part of my Laravel app). I already configured the Eloquent guards like so:

config/auth.php

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'statamic' => [
            'driver' => 'session',
            'provider' => 'statamic_users',
        ],
   ]

    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
        ],
        'statamic_users' => [
            'driver' => 'eloquent',
            'model' => App\Models\StatamicUser::class,
        ],
    ],

config/statamic/users.php

  'repository' => 'eloquent',
  'repositories' => [
      'eloquent' => [
          'driver' => 'eloquent',
      ],
  ],
  'guards' => [
      'cp' => 'statamic',
      'web' => 'web',
  ],

With this configuration I can authenticate on CP with my statamic_users (that is good). But Statamic keep showing users table records in the Users section of the control panel. How can I indicate Statamic to use my statamic_users table to fetch/store users ?

Thanks

>>>>>>> Unanswered <<<<<<<
4 Replies
3 Followers