@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('subscriptions', function (Blueprint $table) { |
|
16 | + Schema::create('subscriptions', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('donator_id'); |
19 | 19 | $table->unsignedBigInteger('campaign_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('donators', function (Blueprint $table) { |
|
16 | + Schema::create('donators', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('email')->unique(); |
19 | 19 | $table->string('name')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('transactions', function (Blueprint $table) { |
|
16 | + Schema::create('transactions', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->unsignedBigInteger('donator_id'); |
19 | 19 | $table->unsignedBigInteger('campaign_id'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('campaigns', function (Blueprint $table) { |
|
16 | + Schema::create('campaigns', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->text('description'); |
@@ -13,10 +13,10 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('configurations', function (Blueprint $table) { |
|
16 | + Schema::create('configurations', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | - $table->string('configuration_name',255); |
|
19 | - $table->longtext('configuration_value',255); |
|
18 | + $table->string('configuration_name', 255); |
|
19 | + $table->longtext('configuration_value', 255); |
|
20 | 20 | $table->boolean('configuration_active'); |
21 | 21 | $table->timestamps(); |
22 | 22 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('campaign_translations', function (Blueprint $table) { |
|
16 | + Schema::create('campaign_translations', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedBigInteger('campaign_id'); |
19 | 19 | $table->string('locale', 2); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * @var \Illuminate\Database\Eloquent\Factory $factory |
10 | 10 | */ |
11 | 11 | |
12 | -$factory->define(Transaction::class, function (\Faker\Generator $faker) { |
|
12 | +$factory->define(Transaction::class, function(\Faker\Generator $faker) { |
|
13 | 13 | return [ |
14 | 14 | 'donator_id' => factory(Donator::class)->lazy(), |
15 | 15 | 'campaign_id' => factory(Campaign::class)->lazy(), |
@@ -7,7 +7,7 @@ |
||
7 | 7 | * @var \Illuminate\Database\Eloquent\Factory $factory |
8 | 8 | */ |
9 | 9 | |
10 | -$factory->define(Campaign::class, function (Faker\Generator $faker) { |
|
10 | +$factory->define(Campaign::class, function(Faker\Generator $faker) { |
|
11 | 11 | return [ |
12 | 12 | 'name' => $faker->words(3, true), |
13 | 13 | 'description' => $faker->sentence, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | | |
16 | 16 | */ |
17 | 17 | |
18 | -$factory->define(Admin::class, function (Faker $faker) { |
|
18 | +$factory->define(Admin::class, function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'name' => $faker->name, |
21 | 21 | 'email' => $faker->unique()->safeEmail, |