@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('promocodes', function (Blueprint $table) { |
|
| 15 | + Schema::create('promocodes', function(Blueprint $table) { |
|
| 16 | 16 | $table->id(); |
| 17 | 17 | |
| 18 | 18 | $table->string('code', 32)->unique(); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $table->timestamp('expires_at')->nullable(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Schema::create('promocode_user', function (Blueprint $table) { |
|
| 28 | + Schema::create('promocode_user', function(Blueprint $table) { |
|
| 29 | 29 | $table->unsignedBigInteger('user_id'); |
| 30 | 30 | $table->unsignedBigInteger('promocode_id'); |
| 31 | 31 | |
@@ -14,14 +14,14 @@ discard block |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->publishes([ |
| 17 | - __DIR__ . '/../config/promocodes.php' => config_path('promocodes.php'), |
|
| 17 | + __DIR__.'/../config/promocodes.php' => config_path('promocodes.php'), |
|
| 18 | 18 | ]); |
| 19 | 19 | |
| 20 | 20 | if (!class_exists('CreatePromocodesTable')) { |
| 21 | 21 | $timestamp = date('Y_m_d_His', time()); |
| 22 | 22 | |
| 23 | 23 | $this->publishes([ |
| 24 | - __DIR__ . '/../migrations/create_promocodes_table.php.stub' => database_path("/migrations/{$timestamp}_create_promocodes_table.php"), |
|
| 24 | + __DIR__.'/../migrations/create_promocodes_table.php.stub' => database_path("/migrations/{$timestamp}_create_promocodes_table.php"), |
|
| 25 | 25 | ], 'migrations'); |
| 26 | 26 | } |
| 27 | 27 | } |
@@ -34,10 +34,10 @@ discard block |
||
| 34 | 34 | public function register() |
| 35 | 35 | { |
| 36 | 36 | $this->mergeConfigFrom( |
| 37 | - __DIR__ . '/../config/promocodes.php', 'promocodes' |
|
| 37 | + __DIR__.'/../config/promocodes.php', 'promocodes' |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | - $this->app->singleton('promocodes', function ($app) { |
|
| 40 | + $this->app->singleton('promocodes', function($app) { |
|
| 41 | 41 | return new Promocodes(); |
| 42 | 42 | }); |
| 43 | 43 | } |