How to use global prefix for tables in Laravel 5
<p>New in Laravel. Probably a silly question. I had setup database like this:</p>

<pre><code>'mysql' =&gt; [
        'driver' =&gt; 'mysql',
        'host' =&gt; env('DB_HOST', 'localhost'),
        'port' =&gt; env('DB_PORT', '3306'),
        'database' =&gt; 'mydb',
        'username' =&gt; 'myusername',
        'password' =&gt; 'mypassword',
        'charset' =&gt; 'utf8',
        'collation' =&gt; 'utf8_unicode_ci',
        'prefix' =&gt; 'admin',
        'strict' =&gt; false,
        'engine' =&gt; null,
    ],
</code></pre>

<p>Notice <code>'prefix' =&gt; 'admin'</code>. This is because I want all tables related to the website's control panel be prefixed with <strong>admin</strong>, e.g: admin_users, admin_log, etc...</p>

<p>But I'm stuck at the very beginning. I'm trying to create migrations via artisan but it's not creating the tables with the prefix. </p>

<pre><code>php artisan make:migration create_users_table --create=users
</code></pre>

<p>I'm expecting that to create a table named <code>admin_users</code>. But it's not.</p>

<p>Am I doing this right? </p>