Hasan Setiawan

Write, write, write give your wings on code!

Follow me on GitHub

Laravel create dynamic database

I'm trying to create a table dynamically upon an admin request, and while it seems all fun and dandy like in most of Laravel's documentation, I can't seem to create a table. Though I can drop tables, and add or drop columns as I wish.

      
          use Illuminate\Database\Schema\Blueprint;
          use Illuminate\Support\Facades\Schema;

          Schema::create('tableName', function (Blueprint $table) {
                  $table->increments('id');
                  $table->timestamps();
              });