@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create(config('promocodes.table', 'promocodes'), function (Blueprint $table) { |
|
| 15 | + Schema::create(config('promocodes.table', 'promocodes'), function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | |
| 18 | 18 | $table->integer('user_id')->unsigned()->nullable(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | __DIR__.'/config/promocodes.php', 'promocodes' |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | - $this->app->singleton('promocodes', function ($app) { |
|
| 36 | + $this->app->singleton('promocodes', function($app) { |
|
| 37 | 37 | return new Promocodes(); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * @param null $reward |
| 15 | 15 | * @param array $data |
| 16 | 16 | * |
| 17 | - * @return mixed |
|
| 17 | + * @return \Illuminate\Support\Collection |
|
| 18 | 18 | */ |
| 19 | 19 | public function createCode($amount = 1, $reward = null, array $data = []) |
| 20 | 20 | { |
@@ -139,14 +139,14 @@ |
||
| 139 | 139 | * @return static |
| 140 | 140 | */ |
| 141 | 141 | public function create($amount = 1, $reward = null, array $data = []) |
| 142 | -======= |
|
| 142 | +=== === = |
|
| 143 | 143 | * @param int $amount |
| 144 | 144 | * @param null $reward |
| 145 | 145 | * |
| 146 | 146 | * @return static |
| 147 | - */ |
|
| 147 | + * / |
|
| 148 | 148 | public function create($amount = 1, $reward = null) |
| 149 | ->>>>>>> 46cd444ffd48ecc5f447fb653487856224e958d6 |
|
| 149 | +>> >> >> > 46cd444ffd48ecc5f447fb653487856224e958d6 |
|
| 150 | 150 | { |
| 151 | 151 | $records = []; |
| 152 | 152 | |