hasTable($table); if (!$tableCheck) { Schema::connection($connection)->create($table, function (Blueprint $table) { $table->increments('id')->unsigned(); $table->string('name'); $table->string('slug')->unique(); $table->string('description')->nullable(); $table->string('model')->nullable(); $table->timestamps(); $table->softDeletes(); }); } } /** * Reverse the migrations. * * @return void */ public function down() { $connection = config('roles.connection'); $table = config('roles.permissionsTable'); Schema::connection($connection)->dropIfExists($table); } }