Skip to content
This repository was archived by the owner on Jan 19, 2020. It is now read-only.

Commit f882354

Browse files
author
Dmitry Bubyakin
committed
Use laravel-urls-shortener.table
1 parent 8800620 commit f882354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/create_short_urls_table.php.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CreateShortUrlsTable extends Migration
88
{
99
public function up()
1010
{
11-
Schema::create('short_urls', function (Blueprint $table) {
11+
Schema::create(config('laravel-urls-shortener.table'), function (Blueprint $table) {
1212
$table->bigIncrements('id');
1313
$table->text('url');
1414
$table->timestamps();
@@ -17,6 +17,6 @@ class CreateShortUrlsTable extends Migration
1717

1818
public function down()
1919
{
20-
Schema::dropIfExists('short_urls');
20+
Schema::dropIfExists(config('laravel-urls-shortener.table'));
2121
}
2222
}

0 commit comments

Comments
 (0)