title: Yii 2 User Authentication & Role Based Access Control (RBAC) Module installation and usage
body: <p>I am trying to install and use this <a href="https://github.com/robregonm/yii2-auth" rel="nofollow"> robregonm / yii2-auth</a> module in my newly installed yii2 advance app.
  I used composer to install it.
  using this command </p>
  
  <pre><code>php composer.phar require robregonm/yii2-auth "dev-master"
  </code></pre>
  
  <p>I have configured my web and console files accordingly.
  now I am trying to run migration as mentioned using </p>
  
  <pre><code>./yii migrate/up --migrationPath=@auth/migrations
  </code></pre>
  
  <p>And I am getting following error.</p>
  
  <pre><code>Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\db\Connection::user'
  
  in /var/www/mycoolapp/vendor/yiisoft/yii2/base/Component.php:196
  
  Stack trace:
  #0 /var/www/mycoolapp/vendor/yiisoft/yii2/BaseYii.php(515): yii\base\Component-&gt;__set('user', Array)
  #1 /var/www/mycoolapp/vendor/yiisoft/yii2/base/Object.php(104): yii\BaseYii::configure(Object(yii\db\Connection), Array)
  #2 [internal function]: yii\base\Object-&gt;__construct(Array)
  #3 /var/www/mycoolapp/vendor/yiisoft/yii2/di/Container.php(365): ReflectionClass-&gt;newInstanceArgs(Array)
  #4 /var/www/mycoolapp/vendor/yiisoft/yii2/di/Container.php(147): yii\di\Container-&gt;build('yii\db\Connecti...', Array, Array)
  #5 /var/www/mycoolapp/vendor/yiisoft/yii2/BaseYii.php(341): yii\di\Container-&gt;get('yii\db\Connecti...', Array, Array)
  #6 /var/www/mycoolapp/vendor/yiisoft/yii2/di/ServiceLocator.php(132): yii\BaseYii::createObject(Array)
  #7 /var/www/mycoolapp/vendor/yiisoft/yii2/console/controllers/MigrateController.php(124): yii\di\ServiceLocator-&gt;get('db')
  #8 /var/www/mycoolapp/vendor/yiisoft/yii2/base/Controller.php(144): yii\console\controllers\MigrateController-&gt;beforeAction(Object(yii\base\InlineAction))
  #9 /var/www/mycoolapp/vendor/yiisoft/yii2/console/Controller.php(83): yii\base\Controller-&gt;runAction('up', Array)
  #10 /var/www/mycoolapp/vendor/yiisoft/yii2/base/Module.php(444): yii\console\Controller-&gt;runAction('up', Array)
  #11 /var/www/mycoolapp/vendor/yiisoft/yii2/console/Application.php(164): yii\base\Module-&gt;runAction('migrate/up', Array)
  #12 /var/www/mycoolapp/vendor/yiisoft/yii2/console/Application.php(140): yii\console\Application-&gt;runAction('migrate/up', Array)
  #13 /var/www/mycoolapp/vendor/yiisoft/yii2/base/Application.php(329): yii\console\Application-&gt;handleRequest(Object(yii\console\Request))
  #14 /var/www/mycoolapp/yii(30): yii\base\Application-&gt;run()
  #15 {main}
  PHP Fatal error:  Uncaught exception 'yii\base\InvalidConfigException' with message 'Unable to append to log file: /var/www/mycoolapp/console/runtime/logs/app.log' in /var/www/mycoolapp/vendor/yiisoft/yii2/log/FileTarget.php:87
  Stack trace:
  #0 /var/www/mycoolapp/vendor/yiisoft/yii2/log/Target.php(103): yii\log\FileTarget-&gt;export()
  #1 /var/www/mycoolapp/vendor/yiisoft/yii2/log/Dispatcher.php(179): yii\log\Target-&gt;collect(Array, true)
  #2 /var/www/mycoolapp/vendor/yiisoft/yii2/log/Logger.php(162): yii\log\Dispatcher-&gt;dispatch(Array, true)
  #3 [internal function]: yii\log\Logger-&gt;flush(true)
  #4 {main}
    thrown in /var/www/mycoolapp/vendor/yiisoft/yii2/log/FileTarget.php on line 87
  </code></pre>
  
  <p>I am confused about whats missing here?
  I can not find auth module anywhere in app.
  My question is where should I clone yii2-auth in app?</p>