diff --git a/src/FriendshipsServiceProvider.php b/src/FriendshipsServiceProvider.php index 4571818..757660b 100644 --- a/src/FriendshipsServiceProvider.php +++ b/src/FriendshipsServiceProvider.php @@ -13,12 +13,11 @@ class FriendshipsServiceProvider extends ServiceProvider */ public function boot() { - $stub = __DIR__ . '/migrations/'; - $target = database_path('migrations') . '/'; - $this->publishes([ - $stub . 'create_friendships_table.php' => $target . date('Y_m_d_His', time()) . '_create_friendships_table.php', - ], 'migrations'); + + // $this->publishes([ + // __DIR__ . '/migrations' => $this->app->databasePath() . '/migrations' + // ], 'migrations'); $this->loadMigrationsFrom(__DIR__.'/migrations'); } diff --git a/src/migrations/create_friendships_table.php b/src/migrations/2017_01_30_200303_create_friendships_table.php similarity index 96% rename from src/migrations/create_friendships_table.php rename to src/migrations/2017_01_30_200303_create_friendships_table.php index 38bdf92..da726e2 100644 --- a/src/migrations/create_friendships_table.php +++ b/src/migrations/2017_01_30_200303_create_friendships_table.php @@ -2,7 +2,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Facades\Schema; +// use Illuminate\Support\Facades\Schema; class CreateFriendshipsTable extends Migration {