Skip to content

Commit

Permalink
Merge pull request #546 from pjmartorell/fix-migration-command
Browse files Browse the repository at this point in the history
Fall back to the default users table in case it's not defined
  • Loading branch information
andrewelkins committed Mar 23, 2016
2 parents 1fa77fa + 9635ca1 commit 3528dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/MigrationCommand.php
Expand Up @@ -81,7 +81,7 @@ protected function createMigration($rolesTable, $roleUserTable, $permissionsTabl
{
$migrationFile = base_path("/database/migrations")."/".date('Y_m_d_His')."_entrust_setup_tables.php";

$usersTable = Config::get('auth.providers.users.table');
$usersTable = Config::get('auth.providers.users.table') ?: 'users';
$userModel = Config::get('auth.providers.users.model');
$userKeyName = (new $userModel())->getKeyName();

Expand Down

0 comments on commit 3528dee

Please sign in to comment.