@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected function redirectTo($request) |
16 | 16 | { |
17 | - if (! $request->expectsJson()) { |
|
17 | + if (!$request->expectsJson()) { |
|
18 | 18 | return route('login'); |
19 | 19 | } |
20 | 20 | } |
@@ -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'); |
@@ -5,30 +5,30 @@ |
||
5 | 5 | |
6 | 6 | class CreatePasswordResetsTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('password_resets', function(Blueprint $table) |
|
16 | - { |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('password_resets', function(Blueprint $table) |
|
16 | + { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token'); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
20 | - }); |
|
21 | - } |
|
20 | + }); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * Reverse the migrations. |
|
26 | - * |
|
27 | - * @return void |
|
28 | - */ |
|
29 | - public function down() |
|
30 | - { |
|
31 | - Schema::dropIfExists('password_resets'); |
|
32 | - } |
|
24 | + /** |
|
25 | + * Reverse the migrations. |
|
26 | + * |
|
27 | + * @return void |
|
28 | + */ |
|
29 | + public function down() |
|
30 | + { |
|
31 | + Schema::dropIfExists('password_resets'); |
|
32 | + } |
|
33 | 33 | |
34 | 34 | } |
@@ -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'); |
@@ -5,33 +5,33 @@ |
||
5 | 5 | |
6 | 6 | class CreateSessionsTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('sessions', function(Blueprint $table) |
|
16 | - { |
|
17 | - $table->string('id', 191)->unique(); |
|
18 | - $table->integer('admin_id')->unsigned()->nullable(); |
|
19 | - $table->string('ip_address', 45)->nullable(); |
|
20 | - $table->text('user_agent', 65535)->nullable(); |
|
21 | - $table->text('payload', 65535); |
|
22 | - $table->integer('last_activity'); |
|
23 | - }); |
|
24 | - } |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('sessions', function(Blueprint $table) |
|
16 | + { |
|
17 | + $table->string('id', 191)->unique(); |
|
18 | + $table->integer('admin_id')->unsigned()->nullable(); |
|
19 | + $table->string('ip_address', 45)->nullable(); |
|
20 | + $table->text('user_agent', 65535)->nullable(); |
|
21 | + $table->text('payload', 65535); |
|
22 | + $table->integer('last_activity'); |
|
23 | + }); |
|
24 | + } |
|
25 | 25 | |
26 | 26 | |
27 | - /** |
|
28 | - * Reverse the migrations. |
|
29 | - * |
|
30 | - * @return void |
|
31 | - */ |
|
32 | - public function down() |
|
33 | - { |
|
34 | - Schema::drop('sessions'); |
|
35 | - } |
|
27 | + /** |
|
28 | + * Reverse the migrations. |
|
29 | + * |
|
30 | + * @return void |
|
31 | + */ |
|
32 | + public function down() |
|
33 | + { |
|
34 | + Schema::drop('sessions'); |
|
35 | + } |
|
36 | 36 | |
37 | 37 | } |
@@ -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); |