repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2024_07_29_045343_drop_pageview_devices_and_referers.php
Beam/extensions/beam-module/database/migrations/2024_07_29_045343_drop_pageview_devices_and_referers.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class DropPageviewDevicesAndReferers extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("session_devices", function (Blueprint $table) { $table->drop(); }); Schema::table("session_referers", function (Blueprint $table) { $table->drop(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::create('session_devices', function (Blueprint $table) { $table->increments('id'); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->boolean('subscriber'); $table->integer('count'); $table->string('type')->nullable(); $table->string('model')->nullable(); $table->string('brand')->nullable(); $table->string('os_name')->nullable(); $table->string('os_version')->nullable(); $table->string('client_type')->nullable(); $table->string('client_name')->nullable(); $table->string('client_version')->nullable(); $table->index(['brand']); $table->index(['model']); $table->index(['type']); $table->index(['client_type']); $table->index(['client_name', 'client_version']); $table->index(['os_name', 'os_version']); $table->index(['time_from']); $table->index(['time_to']); }); Schema::create('session_referers', function (Blueprint $table) { $table->increments('id'); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->boolean('subscriber'); $table->integer('count'); $table->string('medium')->nullable(); $table->string('source')->nullable(); $table->index(['medium']); $table->index(['source']); $table->index(['subscriber']); $table->index(['time_from']); $table->index(['time_to']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_10_123942_create_conversion_commerce_event_products_table.php
Beam/extensions/beam-module/database/migrations/2018_12_10_123942_create_conversion_commerce_event_products_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConversionCommerceEventProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conversion_commerce_event_products', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('conversion_commerce_event_id')->unsigned(); $table->string('product_id'); $table->foreign('conversion_commerce_event_id', 'event_foreign') ->references('id')->on('conversion_commerce_events') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('conversion_commerce_event_products'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_01_31_142723_create_article_aggregated_views_with_id_table.php
Beam/extensions/beam-module/database/migrations/2019_01_31_142723_create_article_aggregated_views_with_id_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticleAggregatedViewsWithIdTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Recreating table, dumping old data Schema::dropIfExists('article_aggregated_views'); Schema::create('article_aggregated_views', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->string('user_id')->nullable(); $table->string('browser_id')->nullable(); $table->date('date'); $table->integer('pageviews')->default(0); $table->integer('timespent')->default(0); $table->unique(['article_id', 'user_id', 'browser_id', 'date'], 'unique_index'); $table->index('user_id'); $table->index('browser_id'); $table->index('date'); $table->foreign('article_id', 'fk_article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_05_18_132351_add_missing_session_indexes.php
Beam/extensions/beam-module/database/migrations/2018_05_18_132351_add_missing_session_indexes.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddMissingSessionIndexes extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('session_devices', function(Blueprint $table) { $table->index(['brand']); $table->index(['model']); $table->index(['type']); $table->index(['client_type']); $table->index(['client_name', 'client_version']); $table->index(['os_name', 'os_version']); $table->index(['time_from']); $table->index(['time_to']); }); Schema::table('session_referers', function(Blueprint $table) { $table->index(['medium']); $table->index(['source']); $table->index(['subscriber']); $table->index(['time_from']); $table->index(['time_to']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('session_devices', function(Blueprint $table) { $table->dropIndex(['brand']); $table->dropIndex(['model']); $table->dropIndex(['type']); $table->dropIndex(['client_type']); $table->dropIndex(['client_name', 'client_version']); $table->dropIndex(['os_name', 'os_version']); $table->dropIndex(['time_from']); $table->dropIndex(['time_to']); }); Schema::table('session_referers', function(Blueprint $table) { $table->dropIndex(['medium']); $table->dropIndex(['source']); $table->dropIndex(['subscriber']); $table->dropIndex(['time_from']); $table->dropIndex(['time_to']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_10_25_124435_add_personalized_content_to_newsletters_table.php
Beam/extensions/beam-module/database/migrations/2018_10_25_124435_add_personalized_content_to_newsletters_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddPersonalizedContentToNewslettersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('newsletters', function (Blueprint $table) { $table->boolean('personalized_content')->after('recurrence_rule'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('newsletters', function (Blueprint $table) { $table->dropColumn('votes'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_07_11_133723_create_article_aggregated_views_table.php
Beam/extensions/beam-module/database/migrations/2018_07_11_133723_create_article_aggregated_views_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticleAggregatedViewsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_aggregated_views', function (Blueprint $table) { $table->integer('article_id')->unsigned(); $table->string('user_id'); $table->string('browser_id'); $table->date('date'); $table->integer('pageviews')->default(0); $table->integer('timespent')->default(0); $table->primary(['article_id', 'user_id', 'browser_id', 'date'], 'primary_index'); $table->foreign('article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('article_aggregated_views'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2024_04_15_131551_remove_configs_autoload_flag.php
Beam/extensions/beam-module/database/migrations/2024_04_15_131551_remove_configs_autoload_flag.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class RemoveConfigsAutoloadFlag extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("configs", function (Blueprint $table) { $table->dropColumn('autoload'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table("configs", function (Blueprint $table) { $table->boolean('autoload')->default(true)->after('sorting'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_02_20_113557_alter_newsletters_change_timespan_type.php
Beam/extensions/beam-module/database/migrations/2019_02_20_113557_alter_newsletters_change_timespan_type.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AlterNewslettersChangeTimespanType extends Migration { public function up() { Schema::table('newsletters', function (Blueprint $table) { $table->string('timespan')->change(); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_04_06_120804_add_indexes_to_segments.php
Beam/extensions/beam-module/database/migrations/2020_04_06_120804_add_indexes_to_segments.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddIndexesToSegments extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('segments', function (Blueprint $table) { $table->index(['name']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('segments', function (Blueprint $table) { $table->dropIndex(['name']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_07_12_075004_create_segment_users_table.php
Beam/extensions/beam-module/database/migrations/2018_07_12_075004_create_segment_users_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSegmentUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('segment_users', function (Blueprint $table) { $table->increments('id'); $table->integer('segment_id')->unsigned(); $table->string('user_id'); $table->timestamps(); $table->foreign('segment_id')->references('id')->on('segments'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('segment_users'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_16_115820_unique_article_ids.php
Beam/extensions/beam-module/database/migrations/2018_02_16_115820_unique_article_ids.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UniqueArticleIds extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function(Blueprint $table) { $table->unique(['external_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function(Blueprint $table) { $table->dropUnique(['external_id']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_12_04_145757_convert_utm_to_rtm.php
Beam/extensions/beam-module/database/migrations/2020_12_04_145757_convert_utm_to_rtm.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ConvertUtmToRtm extends Migration { public function up() { Schema::table('conversion_commerce_events', function (Blueprint $table) { $table->renameColumn('utm_campaign', 'rtm_campaign'); $table->renameColumn('utm_content', 'rtm_content'); $table->renameColumn('utm_medium', 'rtm_medium'); $table->renameColumn('utm_source', 'rtm_source'); }); Schema::table('conversion_general_events', function (Blueprint $table) { $table->renameColumn('utm_campaign', 'rtm_campaign'); $table->renameColumn('utm_content', 'rtm_content'); $table->renameColumn('utm_medium', 'rtm_medium'); $table->renameColumn('utm_source', 'rtm_source'); }); Schema::table('conversion_pageview_events', function (Blueprint $table) { $table->renameColumn('utm_campaign', 'rtm_campaign'); $table->renameColumn('utm_content', 'rtm_content'); $table->renameColumn('utm_medium', 'rtm_medium'); $table->renameColumn('utm_source', 'rtm_source'); }); } public function down() { Schema::table('conversion_commerce_events', function (Blueprint $table) { $table->renameColumn('rtm_campaign', 'utm_campaign'); $table->renameColumn('rtm_content', 'utm_content'); $table->renameColumn('rtm_medium', 'utm_medium'); $table->renameColumn('rtm_source', 'utm_source'); }); Schema::table('conversion_general_events', function (Blueprint $table) { $table->renameColumn('rtm_campaign', 'utm_campaign'); $table->renameColumn('rtm_content', 'utm_content'); $table->renameColumn('rtm_medium', 'utm_medium'); $table->renameColumn('rtm_source', 'utm_source'); }); Schema::table('conversion_pageview_events', function (Blueprint $table) { $table->renameColumn('rtm_campaign', 'utm_campaign'); $table->renameColumn('rtm_content', 'utm_content'); $table->renameColumn('rtm_medium', 'utm_medium'); $table->renameColumn('rtm_source', 'utm_source'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_19_093646_add_events_aggregated_to_conversions_table.php
Beam/extensions/beam-module/database/migrations/2018_12_19_093646_add_events_aggregated_to_conversions_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddEventsAggregatedToConversionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('conversions', function (Blueprint $table) { $table->boolean('events_aggregated') ->after('transaction_id') ->default(false); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('conversions', function (Blueprint $table) { $table->dropColumn('events_aggregated'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_07_28_091554_create_conversion_sources_table.php
Beam/extensions/beam-module/database/migrations/2020_07_28_091554_create_conversion_sources_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConversionSourcesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('conversions', function (Blueprint $table) { $table->addColumn('boolean', 'source_processed', ['default' => false, 'after' => 'events_aggregated']); }); Schema::create('conversion_sources', function (Blueprint $table) { $table->increments('id'); $table->integer('conversion_id')->unsigned(); $table->string('type'); $table->string('referer_medium'); $table->string('referer_source')->nullable(); $table->string('referer_host_with_path')->nullable(); $table->integer('article_id')->unsigned()->nullable(); $table->timestamps(); $table->foreign('conversion_id')->references('id')->on('conversions'); $table->foreign('article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('conversions', function (Blueprint $table) { $table->dropColumn('source_processed'); }); Schema::dropIfExists('conversion_sources'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_10_01_071934_drop_schema_column_from_entities_table.php
Beam/extensions/beam-module/database/migrations/2018_10_01_071934_drop_schema_column_from_entities_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class DropSchemaColumnFromEntitiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("entities", function (Blueprint $table) { $table->dropColumn("schema"); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table("entities", function (Blueprint $table) { $table->json("schema"); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_11_13_093901_seed_section_segment_config_category_and_values.php
Beam/extensions/beam-module/database/migrations/2020_11_13_093901_seed_section_segment_config_category_and_values.php
<?php use Illuminate\Database\Migrations\Migration; class SeedSectionSegmentConfigCategoryAndValues extends Migration { /** * Run the migrations. * * @return void */ public function up() { Artisan::call('db:seed', [ '--class' => \Remp\BeamModule\Database\Seeders\ConfigSeeder::class, '--force' => true, ]); } /** * Reverse the migrations. * * @return void */ public function down() { } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_11_07_153448_add_indexes_to_article_views_snapshots.php
Beam/extensions/beam-module/database/migrations/2019_11_07_153448_add_indexes_to_article_views_snapshots.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddIndexesToArticleViewsSnapshots extends Migration { public function up() { Schema::table('article_views_snapshots', function(Blueprint $table) { $table->index(['external_article_id']); $table->index(['property_token']); // implicit name for index is too long, therefore naming explicitly $table->index(['time', 'derived_referer_medium', 'explicit_referer_medium'], 'time_referer_mediums'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2021_05_06_142318_create_tag_tag_categories_table.php
Beam/extensions/beam-module/database/migrations/2021_05_06_142318_create_tag_tag_categories_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTagTagCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tag_tag_category', function (Blueprint $table) { $table->increments('id'); $table->integer('tag_id')->unsigned(); $table->integer('tag_category_id')->unsigned(); $table->foreign('tag_id')->references('id')->on('tags'); $table->foreign('tag_category_id')->references('id')->on('tag_categories'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tag_tag_category'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_10_03_181106_make_title_nullable_in_article_titles_table.php
Beam/extensions/beam-module/database/migrations/2019_10_03_181106_make_title_nullable_in_article_titles_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class MakeTitleNullableInArticleTitlesTable extends Migration { public function up() { Schema::table('article_titles', function (Blueprint $table) { $table->string('title', 768) ->nullable() ->change(); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2021_11_08_084315_add_index_to_conversions_paid_at_column.php
Beam/extensions/beam-module/database/migrations/2021_11_08_084315_add_index_to_conversions_paid_at_column.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddIndexToConversionsPaidAtColumn extends Migration { public function up() { Schema::table('conversions', function(Blueprint $table) { $table->index('paid_at'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_10_114720_create_conversion_pageview_events_table.php
Beam/extensions/beam-module/database/migrations/2018_12_10_114720_create_conversion_pageview_events_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConversionPageviewEventsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conversion_pageview_events', function (Blueprint $table) { $table->increments('id'); $table->integer('conversion_id')->unsigned(); $table->timestamp('time'); $table->integer('minutes_to_conversion'); $table->integer('event_prior_conversion')->unsigned(); $table->integer('article_id')->unsigned(); $table->boolean('locked')->nullable(); $table->boolean('signed_in')->nullable(); $table->integer('timespent')->unsigned()->nullable(); $table->string('utm_campaign')->nullable(); $table->string('utm_content')->nullable(); $table->string('utm_medium')->nullable(); $table->string('utm_source')->nullable(); $table->timestamps(); $table->foreign('conversion_id')->references('id')->on('conversions'); $table->foreign('article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('conversion_pageview_events'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_04_04_060513_properties_table.php
Beam/extensions/beam-module/database/migrations/2017_04_04_060513_properties_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class PropertiesTable extends Migration { public function up() { Schema::create('properties', function (Blueprint $table) { $table->increments('id'); $table->uuid('uuid'); $table->string('name'); $table->integer('account_id')->unsigned(); $table->timestamps(); $table->foreign('account_id')->references('id')->on('accounts'); }); } public function down() { Schema::drop('properties'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_08_23_071800_event_name_to_action.php
Beam/extensions/beam-module/database/migrations/2017_08_23_071800_event_name_to_action.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class EventNameToAction extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('segment_rules', function (Blueprint $table) { $table->renameColumn('event_name', 'event_action'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('segment_rules', function (Blueprint $table) { $table->renameColumn('event_action', 'event_name'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_01_03_142538_create_article_titles.php
Beam/extensions/beam-module/database/migrations/2019_01_03_142538_create_article_titles.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticleTitles extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_titles', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->string('variant'); $table->string('title', 768); $table->timestamps(); $table->foreign('article_id')->references('id')->on('articles'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('article_titles'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2023_04_04_070759_article_views_snapshots_add_index_time_property_token.php
Beam/extensions/beam-module/database/migrations/2023_04_04_070759_article_views_snapshots_add_index_time_property_token.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class ArticleViewsSnapshotsAddIndexTimePropertyToken extends Migration { public function up(): void { Schema::table('article_views_snapshots', function(Blueprint $table) { $table->index(['time', 'property_token'], 'article_views_snapshots_time_property_token_index'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_09_20_135555_segment_rule_operator.php
Beam/extensions/beam-module/database/migrations/2017_09_20_135555_segment_rule_operator.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class SegmentRuleOperator extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('segment_rules', function (Blueprint $table) { $table->string('operator')->nullable()->default('<'); $table->dropForeign('segment_rules_parent_id_foreign'); $table->dropColumn('parent_id'); }); Schema::table('segment_rules', function (Blueprint $table) { $table->string('operator')->nullable(false)->default(null)->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('segment_rules', function (Blueprint $table) { $table->dropColumn('operator'); $table->integer('parent_id')->unsigned()->nullable(); $table->foreign('parent_id')->references('id')->on('segment_rules'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_09_07_124520_uuid_indices.php
Beam/extensions/beam-module/database/migrations/2017_09_07_124520_uuid_indices.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UuidIndices extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('properties', function (Blueprint $table) { $table->index(['uuid']); }); Schema::table('accounts', function (Blueprint $table) { $table->index(['uuid']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('properties', function (Blueprint $table) { $table->dropIndex(['uuid']); }); Schema::table('accounts', function (Blueprint $table) { $table->dropIndex(['uuid']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_02_18_201353_remove_unused_columns_in_article_views_snapshots.php
Beam/extensions/beam-module/database/migrations/2020_02_18_201353_remove_unused_columns_in_article_views_snapshots.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class RemoveUnusedColumnsInArticleViewsSnapshots extends Migration { public function up() { Schema::table('article_views_snapshots', function (Blueprint $table) { $table->dropIndex('time_referer_mediums'); $table->dropColumn('count_by_referer'); $table->dropColumn('explicit_referer_medium'); $table->renameColumn('derived_referer_medium', 'referer_medium'); $table->index(['time', 'referer_medium']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_12_02_090920_change_authors_segment_days_threshold_description.php
Beam/extensions/beam-module/database/migrations/2020_12_02_090920_change_authors_segment_days_threshold_description.php
<?php use Remp\BeamModule\Model\Config\Config; use Remp\BeamModule\Model\Config\ConfigNames; use Illuminate\Database\Migrations\Migration; class ChangeAuthorsSegmentDaysThresholdDescription extends Migration { public function up() { Config::where('name', ConfigNames::AUTHOR_SEGMENTS_DAYS_IN_PAST)->update([ 'description' => 'Compute author segments from data not older than given number of days (allowed values: 30, 60, 90)', ]); } public function down() { Config::where('name', ConfigNames::AUTHOR_SEGMENTS_DAYS_IN_PAST)->update([ 'description' => 'Compute author segments from data not older than given number of days', ]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_10_122114_create_conversion_general_events_table.php
Beam/extensions/beam-module/database/migrations/2018_12_10_122114_create_conversion_general_events_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConversionGeneralEventsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conversion_general_events', function (Blueprint $table) { $table->increments('id'); $table->integer('conversion_id')->unsigned(); $table->timestamp('time'); $table->integer('minutes_to_conversion'); $table->integer('event_prior_conversion')->unsigned(); $table->string('action')->nullable(); $table->string('category')->nullable(); $table->string('utm_campaign')->nullable(); $table->string('utm_content')->nullable(); $table->string('utm_medium')->nullable(); $table->string('utm_source')->nullable(); $table->timestamps(); $table->foreign('conversion_id')->references('id')->on('conversions'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('conversion_general_events'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_08_07_114042_remove_locked_column_in_configs.php
Beam/extensions/beam-module/database/migrations/2020_08_07_114042_remove_locked_column_in_configs.php
<?php use Remp\BeamModule\Model\Config\ConfigNames; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Remp\BeamModule\Model\Config\Config; class RemoveLockedColumnInConfigs extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('configs', function (Blueprint $table) { $table->dropColumn('locked'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('configs', function (Blueprint $table) { $table->boolean('locked')->default(false); }); $lockedConfigs = [ ConfigNames::AUTHOR_SEGMENTS_MIN_VIEWS, ConfigNames::AUTHOR_SEGMENTS_DAYS_IN_PAST ]; Config::whereIn('name', $lockedConfigs) ->update(['locked' => true]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_15_065425_article_pageviews.php
Beam/extensions/beam-module/database/migrations/2018_02_15_065425_article_pageviews.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticlePageviews extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_pageviews', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->integer('sum'); $table->foreign('article_id')->references('id')->on('articles'); $table->index('time_from'); $table->index('time_to'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('article_pageviews'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_03_29_134957_accounts_table.php
Beam/extensions/beam-module/database/migrations/2017_03_29_134957_accounts_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AccountsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('accounts', function (Blueprint $table) { $table->increments('id'); $table->uuid('uuid'); $table->string('name'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('accounts'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_08_22_075309_create_failed_jobs_table.php
Beam/extensions/beam-module/database/migrations/2018_08_22_075309_create_failed_jobs_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFailedJobsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('failed_jobs', function (Blueprint $table) { $table->bigIncrements('id'); $table->text('connection'); $table->text('queue'); $table->longText('payload'); $table->longText('exception'); $table->timestamp('failed_at')->useCurrent(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('failed_jobs'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_02_06_144306_lock_author_segments_configuration.php
Beam/extensions/beam-module/database/migrations/2019_02_06_144306_lock_author_segments_configuration.php
<?php use Remp\BeamModule\Console\Commands\ComputeAuthorsSegments; use Remp\BeamModule\Model\Config\Config; use Illuminate\Database\Migrations\Migration; class LockAuthorSegmentsConfiguration extends Migration { /** * Run the migrations. * * @return void */ public function up() { Config::whereIn('name', ComputeAuthorsSegments::ALL_CONFIGS)->update([ 'locked' => true ]); } /** * Reverse the migrations. * * @return void */ public function down() { Config::whereIn('name', ComputeAuthorsSegments::ALL_CONFIGS)->update([ 'locked' => false ]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_12_01_094140_unique_codes.php
Beam/extensions/beam-module/database/migrations/2017_12_01_094140_unique_codes.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UniqueCodes extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("segments", function (Blueprint $table) { $table->unique(['code']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table("segments", function (Blueprint $table) { $table->dropUnique(['code']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_14_074236_article_conversions.php
Beam/extensions/beam-module/database/migrations/2018_02_14_074236_article_conversions.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleConversions extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conversions', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->float('amount'); $table->string('currency'); $table->timestamp('paid_at')->nullable(); $table->string('transaction_id'); $table->timestamps(); $table->foreign('article_id')->references('id')->on('articles'); $table->unique(['transaction_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('conversions'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_08_15_162705_create_segment_entities_table.php
Beam/extensions/beam-module/database/migrations/2018_08_15_162705_create_segment_entities_table.php
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSegmentEntitiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('entities', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('parent_id')->nullable(); $table->string('name'); $table->json('schema'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('entities'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_03_29_122457_article_timespent_signed_subscribed.php
Beam/extensions/beam-module/database/migrations/2018_03_29_122457_article_timespent_signed_subscribed.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleTimespentSignedSubscribed extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('article_timespents', function(Blueprint $table) { $table->integer('signed_in')->default(0)->after('sum'); $table->integer('subscribers')->default(0)->after('signed_in'); }); Schema::table('articles', function(Blueprint $table) { $table->renameColumn('timespent_sum', 'timespent_all'); }); Schema::table('articles', function(Blueprint $table) { $table->bigInteger('timespent_signed_in')->default(0)->after('timespent_all'); $table->bigInteger('timespent_subscribers')->default(0)->after('timespent_signed_in'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('article_timespents', function(Blueprint $table) { $table->dropColumn(['signed_in', 'subscribers']); }); Schema::table('articles', function(Blueprint $table) { $table->renameColumn('timespent_all', 'timespent_sum'); $table->dropColumn(['timespent_signed_in', 'timespent_subscribers']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_01_31_140157_article_tags.php
Beam/extensions/beam-module/database/migrations/2020_01_31_140157_article_tags.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleTags extends Migration { public function up() { Schema::create('tags', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); Schema::create('article_tag', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->integer('tag_id')->unsigned(); $table->foreign('article_id')->references('id')->on('articles'); $table->foreign('tag_id')->references('id')->on('tags'); }); } public function down() { } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_07_20_102942_create_segment_groups_table.php
Beam/extensions/beam-module/database/migrations/2018_07_20_102942_create_segment_groups_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSegmentGroupsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('segment_groups', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('code'); $table->string('type'); $table->integer('sorting'); $table->timestamps(); }); Schema::table('segments', function(Blueprint $table) { $table->integer('segment_group_id')->unsigned(); }); Schema::table('segments', function(Blueprint $table) { $table->foreign('segment_group_id')->references('id')->on('segment_groups'); }); Artisan::call('db:seed', [ '--class' => \Remp\BeamModule\Database\Seeders\SegmentGroupSeeder::class, '--force' => true, ]); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('segments', function(Blueprint $table) { $table->dropForeign(['segment_group_id']); $table->dropColumn('segment_group_id'); }); Schema::dropIfExists('segment_groups'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_09_05_085126_make_configs_property_specific.php
Beam/extensions/beam-module/database/migrations/2019_09_05_085126_make_configs_property_specific.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class MakeConfigsPropertySpecific extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('configs', function (Blueprint $table) { $table->integer('property_id') ->unsigned() ->nullable() ->after('display_name'); $table->foreign('property_id')->references('id')->on('properties'); $table->dropUnique(['name']); $table->unique(['name', 'property_id']); }); } public function down() { Schema::table('configs', function (Blueprint $table) { $table->dropColumn('property_id'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_07_24_111455_create_segment_browsers_table.php
Beam/extensions/beam-module/database/migrations/2018_07_24_111455_create_segment_browsers_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSegmentBrowsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('segment_browsers', function (Blueprint $table) { $table->increments('id'); $table->integer('segment_id')->unsigned(); $table->string('browser_id'); $table->timestamps(); $table->foreign('segment_id')->references('id')->on('segments'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('segment_browsers'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_08_22_075217_create_jobs_table.php
Beam/extensions/beam-module/database/migrations/2018_08_22_075217_create_jobs_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateJobsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('jobs', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('queue')->index(); $table->longText('payload'); $table->unsignedTinyInteger('attempts'); $table->unsignedInteger('reserved_at')->nullable(); $table->unsignedInteger('available_at'); $table->unsignedInteger('created_at'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('jobs'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_21_070055_article_sum_cache_columns.php
Beam/extensions/beam-module/database/migrations/2018_02_21_070055_article_sum_cache_columns.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleSumCacheColumns extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function(Blueprint $table) { $table->bigInteger('pageview_sum')->default(0)->after('published_at'); $table->bigInteger('timespent_sum')->default(0)->after('pageview_sum'); $table->index(['published_at']); }); $sql = <<<SQL UPDATE articles -- sum pageviews per article LEFT JOIN ( SELECT SUM(sum) as sum, article_id FROM article_pageviews GROUP BY article_id ) sub1 ON sub1.article_id = articles.id -- sum timespent per article LEFT JOIN ( SELECT SUM(sum) as sum, article_id FROM article_timespents GROUP BY article_id ) sub2 ON sub2.article_id = articles.id SET pageview_sum = COALESCE(sub1.sum, 0), timespent_sum = COALESCE(sub2.sum, 0) SQL; DB::update($sql); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function(Blueprint $table) { $table->dropIndex(['published_at']); $table->dropColumn(['pageview_sum', 'timespent_sum']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_01_24_152049_segments_add_criteria.php
Beam/extensions/beam-module/database/migrations/2019_01_24_152049_segments_add_criteria.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class SegmentsAddCriteria extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("segments", function (Blueprint $table) { $table->json('criteria')->nullable(true)->comment('JSON encoded segment criteria'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('segments', function (Blueprint $table) { $table->dropColumn('criteria'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_10_09_131803_alter_conversions_remove_on_update_from_paid_at_column.php
Beam/extensions/beam-module/database/migrations/2020_10_09_131803_alter_conversions_remove_on_update_from_paid_at_column.php
<?php use Illuminate\Database\Migrations\Migration; class AlterConversionsRemoveOnUpdateFromPaidAtColumn extends Migration { public function up() { // Due to the doctrine bug updating manually // https://github.com/laravel/framework/issues/16526 $sql = 'ALTER TABLE `conversions` CHANGE `paid_at` `paid_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP'; DB::update($sql); $sql = 'ALTER TABLE `conversions` ALTER COLUMN `paid_at` DROP DEFAULT'; DB::update($sql); } public function down() { $sql = 'ALTER TABLE `conversions` CHANGE `paid_at` `paid_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'; DB::update($sql); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_07_02_082320_removing_paid_at_defaults.php
Beam/extensions/beam-module/database/migrations/2019_07_02_082320_removing_paid_at_defaults.php
<?php use Illuminate\Database\Migrations\Migration; // This migration is fixing possible bug caused by MySQL's explicit_defaults_for_timestamp being disabled. // Due to that we don't want to allow down migration so the bug would be introduced back. // // https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp class RemovingPaidAtDefaults extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Doctrine doesn't work with timestamp defaults yet and throws an error. We need to use raw query. DB::statement("ALTER TABLE `conversions` ALTER COLUMN `paid_at` DROP DEFAULT"); } /** * Reverse the migrations. * * @return void */ public function down() { // no action here } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_10_114711_create_conversion_commerce_events_table.php
Beam/extensions/beam-module/database/migrations/2018_12_10_114711_create_conversion_commerce_events_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConversionCommerceEventsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('conversion_commerce_events', function (Blueprint $table) { $table->increments('id'); $table->integer('conversion_id')->unsigned(); $table->timestamp('time'); $table->integer('minutes_to_conversion'); $table->integer('event_prior_conversion')->unsigned(); $table->string('step'); $table->string('funnel_id')->nullable(); $table->float('amount')->nullable(); $table->string('currency')->nullable(); $table->string('utm_campaign')->nullable(); $table->string('utm_content')->nullable(); $table->string('utm_medium')->nullable(); $table->string('utm_source')->nullable(); $table->timestamps(); $table->foreign('conversion_id')->references('id')->on('conversions'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('conversion_commerce_events'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_12_03_123733_create_referer_medium_labels_table.php
Beam/extensions/beam-module/database/migrations/2019_12_03_123733_create_referer_medium_labels_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRefererMediumLabelsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('referer_medium_labels', function (Blueprint $table) { $table->increments('id'); $table->string('referer_medium'); $table->string('label'); $table->timestamps(); $table->unique(['referer_medium']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('referer_medium_labels'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_20_083104_article_timespent.php
Beam/extensions/beam-module/database/migrations/2018_02_20_083104_article_timespent.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleTimespent extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_timespents', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->integer('sum'); $table->foreign('article_id')->references('id')->on('articles'); $table->index('time_from'); $table->index('time_to'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('article_timespents'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_09_05_223346_seed_config_values3.php
Beam/extensions/beam-module/database/migrations/2019_09_05_223346_seed_config_values3.php
<?php use Illuminate\Database\Migrations\Migration; class SeedConfigValues3 extends Migration { public function up() { Artisan::call('db:seed', [ '--class' => \Remp\BeamModule\Database\Seeders\ConfigSeeder::class, '--force' => true, ]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_08_27_111750_add_content_type_to_articles.php
Beam/extensions/beam-module/database/migrations/2020_08_27_111750_add_content_type_to_articles.php
<?php use Remp\BeamModule\Model\Article; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddContentTypeToArticles extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function (Blueprint $table) { $table->string('content_type')->after('url'); }); DB::table('articles')->update(['content_type' => Article::DEFAULT_CONTENT_TYPE]); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function (Blueprint $table) { $table->dropColumn('content_type'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_11_09_081647_create_sections_segment_group.php
Beam/extensions/beam-module/database/migrations/2020_11_09_081647_create_sections_segment_group.php
<?php use Illuminate\Database\Migrations\Migration; class CreateSectionsSegmentGroup extends Migration { /** * Run the migrations. * * @return void */ public function up() { Artisan::call('db:seed', [ '--class' => \Remp\BeamModule\Database\Seeders\SegmentGroupSeeder::class, '--force' => true, ]); } /** * Reverse the migrations. * * @return void */ public function down() { } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2019_06_13_111140_create_article_views_snapshots_table.php
Beam/extensions/beam-module/database/migrations/2019_06_13_111140_create_article_views_snapshots_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticleViewsSnapshotsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('article_views_snapshots', function (Blueprint $table) { $table->increments('id'); $table->timestamp('time'); $table->string('property_token'); $table->string('external_article_id'); $table->string('derived_referer_medium')->nullable(); $table->string('explicit_referer_medium')->nullable(); $table->integer('count')->unsigned(); $table->json('count_by_referer')->nullable(); $table->index('time'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('article_views_snapshots'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2021_06_10_141729_purge_invalid_aggregated_data.php
Beam/extensions/beam-module/database/migrations/2021_06_10_141729_purge_invalid_aggregated_data.php
<?php use Illuminate\Database\Migrations\Migration; class PurgeInvalidAggregatedData extends Migration { /** * Run the migrations. * * @return void */ public function up() { // We've identified timezone-related issue which caused this data to be off. This data is not meant to be // persistent anyway, so we can get rid of them and try to aggregate them again correctly. // Get rid of any flawed data. DB::statement("SET foreign_key_checks = 0"); DB::statement("TRUNCATE TABLE conversion_commerce_event_products"); DB::statement("TRUNCATE TABLE conversion_commerce_events"); DB::statement("TRUNCATE TABLE conversion_general_events"); DB::statement("TRUNCATE TABLE conversion_pageview_events"); DB::statement("SET foreign_key_checks = 1"); // Make sure all conversions will get aggregated and processed again. DB::statement("UPDATE conversions SET events_aggregated = 1, source_processed = 1 WHERE paid_at < NOW() - INTERVAL 90 DAY"); DB::statement("UPDATE conversions SET events_aggregated = 0, source_processed = 0 WHERE paid_at >= NOW() - INTERVAL 90 DAY"); } /** * Reverse the migrations. * * @return void */ public function down() { // down migration not available } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_03_18_122311_add_external_id_column_to_sections_tags_authors_tables.php
Beam/extensions/beam-module/database/migrations/2020_03_18_122311_add_external_id_column_to_sections_tags_authors_tables.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddExternalIdColumnToSectionsTagsAuthorsTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('sections', function (Blueprint $table) { $table->string('external_id')->after('id')->nullable(); $table->index(['external_id']); }); Schema::table('tags', function (Blueprint $table) { $table->string('external_id')->after('id')->nullable(); $table->index(['external_id']); }); Schema::table('authors', function (Blueprint $table) { $table->string('external_id')->after('id')->nullable(); $table->index(['external_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('sections', function (Blueprint $table) { $table->dropColumn('external_id'); }); Schema::table('tags', function (Blueprint $table) { $table->dropColumn('external_id'); }); Schema::table('authors', function (Blueprint $table) { $table->dropColumn('external_id'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_08_02_065721_create_views_per_user_mv_table.php
Beam/extensions/beam-module/database/migrations/2018_08_02_065721_create_views_per_user_mv_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Class CreateViewsPerUserMvTable * Temporary migration, this table works as materialized view * TODO: this will go away after conditions in remp#253 issue are specified */ class CreateViewsPerUserMvTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('views_per_user_mv', function (Blueprint $table) { $table->string('user_id'); $table->integer('total_views_last_30_days')->unsigned()->default(0); $table->integer('total_views_last_60_days')->unsigned()->default(0); $table->integer('total_views_last_90_days')->unsigned()->default(0); $table->primary('user_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('views_per_user_mv'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_06_27_072000_create_segments_table.php
Beam/extensions/beam-module/database/migrations/2017_06_27_072000_create_segments_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSegmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('segments', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('code'); $table->boolean('active'); $table->timestamps(); }); Schema::create('segment_rules', function (Blueprint $table) { $table->increments('id'); $table->integer('segment_id')->unsigned(); $table->integer('parent_id')->unsigned()->nullable(); $table->string('event_category'); $table->string('event_name'); $table->integer('timespan')->nullable(); $table->integer('count'); $table->longText('fields')->comment("JSON encoded fields"); $table->timestamps(); $table->foreign('segment_id')->references('id')->on('segments'); $table->foreign('parent_id')->references('id')->on('segment_rules'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('segment_rules'); Schema::dropIfExists('segments'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_08_01_112202_create_views_per_browser_mv_table.php
Beam/extensions/beam-module/database/migrations/2018_08_01_112202_create_views_per_browser_mv_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Class CreateViewsPerBrowserMvTable * Temporary migration, this table works as materialized view * TODO: this will go away after conditions in remp#253 issue are specified */ class CreateViewsPerBrowserMvTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('views_per_browser_mv', function (Blueprint $table) { $table->string('browser_id'); $table->integer('total_views_last_30_days')->unsigned()->default(0); $table->integer('total_views_last_60_days')->unsigned()->default(0); $table->integer('total_views_last_90_days')->unsigned()->default(0); $table->primary('browser_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('views_per_browser_mv'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_03_22_105849_pageview_devices_and_referers.php
Beam/extensions/beam-module/database/migrations/2018_03_22_105849_pageview_devices_and_referers.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class PageviewDevicesAndReferers extends Migration { public function up() { Schema::create('session_devices', function (Blueprint $table) { $table->increments('id'); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->boolean('subscriber'); $table->integer('count'); $table->string('type')->nullable(); $table->string('model')->nullable(); $table->string('brand')->nullable(); $table->string('os_name')->nullable(); $table->string('os_version')->nullable(); $table->string('client_type')->nullable(); $table->string('client_name')->nullable(); $table->string('client_version')->nullable(); }); Schema::create('session_referers', function (Blueprint $table) { $table->increments('id'); $table->timestamp('time_from')->nullable(); $table->timestamp('time_to')->nullable(); $table->boolean('subscriber'); $table->integer('count'); $table->string('medium')->nullable(); $table->string('source')->nullable(); }); } public function down() { Schema::drop('session_devices'); Schema::drop('session_referers'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2021_05_06_135333_create_tag_categories_table.php
Beam/extensions/beam-module/database/migrations/2021_05_06_135333_create_tag_categories_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTagCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tag_categories', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('external_id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tag_categories'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_12_07_145030_article_prolong_image_url.php
Beam/extensions/beam-module/database/migrations/2018_12_07_145030_article_prolong_image_url.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleProlongImageUrl extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function (Blueprint $table) { $table->string('image_url', 768)->nullable()->change(); $table->string('url', 768)->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function (Blueprint $table) { $table->string('image_url')->change(); $table->string('url')->change(); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_09_03_133431_add_user_id_to_conversions_table.php
Beam/extensions/beam-module/database/migrations/2018_09_03_133431_add_user_id_to_conversions_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddUserIdToConversionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('conversions', function (Blueprint $table) { $table->string('user_id')->after('article_id')->nullable(); $table->index(['user_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('conversions', function (Blueprint $table) { $table->dropColumn('user_id'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_06_08_073818_create_newsletters_table.php
Beam/extensions/beam-module/database/migrations/2018_06_08_073818_create_newsletters_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNewslettersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('newsletters', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('mailer_generator_id')->unsigned(); $table->string('segment'); $table->string('mail_type_code'); $table->string('criteria'); $table->integer('articles_count')->unsigned(); $table->text('recurrence_rule')->nullable(); $table->integer('timespan')->unsigned(); $table->string('state'); $table->string('email_subject'); $table->string('email_from'); $table->timestamp('last_sent_at')->nullable(); $table->timestamp('starts_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('newsletters'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_08_07_122341_seed_author_segments_config_category.php
Beam/extensions/beam-module/database/migrations/2020_08_07_122341_seed_author_segments_config_category.php
<?php use Remp\BeamModule\Model\Config\ConfigCategory; use Remp\BeamModule\Model\Config\ConfigNames; use Remp\BeamModule\Model\Config\Config; use Illuminate\Database\Migrations\Migration; class SeedAuthorSegmentsConfigCategory extends Migration { /** * Run the migrations. * * @return void */ public function up() { $authorSegmentsConfigCategory = ConfigCategory::firstOrCreate([ 'code' => ConfigCategory::CODE_AUTHOR_SEGMENTS, 'display_name' => 'Author Segments' ]); $this->updateAuthorConfigsCategory($authorSegmentsConfigCategory); } /** * Reverse the migrations. * * @return void */ public function down() { $dashboardConfigCategory = ConfigCategory::firstOrCreate([ 'code' => ConfigCategory::CODE_DASHBOARD, 'display_name' => 'Dashboard' ]); $this->updateAuthorConfigsCategory($dashboardConfigCategory); $authorSegmentsConfigCategory = ConfigCategory::where('code', ConfigCategory::CODE_AUTHOR_SEGMENTS)->first(); $authorSegmentsConfigCategory->delete(); } private function updateAuthorConfigsCategory(ConfigCategory $configCategory) { $authorConfigNames = [ ConfigNames::AUTHOR_SEGMENTS_DAYS_IN_PAST, ConfigNames::AUTHOR_SEGMENTS_MIN_VIEWS, ConfigNames::AUTHOR_SEGMENTS_MIN_AVERAGE_TIMESPENT, ConfigNames::AUTHOR_SEGMENTS_MIN_RATIO ]; foreach ($authorConfigNames as $authorConfigName) { $config = Config::where('name', $authorConfigName)->first(); $config->configCategory()->associate($configCategory); $config->save(); } } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_10_01_071044_create_entity_params_table.php
Beam/extensions/beam-module/database/migrations/2018_10_01_071044_create_entity_params_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateEntityParamsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('entity_params', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->unsignedInteger('entity_id'); $table->foreign('entity_id')->references('id')->on('entities'); $table->string("name"); $table->string("type"); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('entity_params'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_03_26_221138_article_pageviews_signed_in_subscriber_columns.php
Beam/extensions/beam-module/database/migrations/2018_03_26_221138_article_pageviews_signed_in_subscriber_columns.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticlePageviewsSignedInSubscriberColumns extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('article_pageviews', function(Blueprint $table) { $table->integer('signed_in')->default(0)->after('sum'); $table->integer('subscribers')->default(0)->after('signed_in'); }); Schema::table('articles', function(Blueprint $table) { $table->renameColumn('pageview_sum', 'pageviews_all'); }); Schema::table('articles', function(Blueprint $table) { $table->bigInteger('pageviews_signed_in')->default(0)->after('pageviews_all'); $table->bigInteger('pageviews_subscribers')->default(0)->after('pageviews_signed_in'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('article_pageviews', function(Blueprint $table) { $table->dropColumn(['signed_in', 'subscribers']); }); Schema::table('articles', function(Blueprint $table) { $table->renameColumn('pageviews_all', 'pageview_sum'); $table->dropColumn(['pageviews_signed_in', 'pageviews_subscribers']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_02_12_112807_articles_table.php
Beam/extensions/beam-module/database/migrations/2018_02_12_112807_articles_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticlesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('articles', function (Blueprint $table) { $table->increments('id'); $table->string('external_id'); $table->string('property_uuid'); $table->string('title'); $table->string('url'); $table->string('image_url')->nullable(); $table->timestamp('published_at')->nullable(); $table->timestamps(); $table->foreign('property_uuid')->references('uuid')->on('properties'); }); Schema::create('sections', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); Schema::create('authors', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->timestamps(); }); Schema::create('article_section', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->integer('section_id')->unsigned(); $table->foreign('article_id')->references('id')->on('articles'); $table->foreign('section_id')->references('id')->on('sections'); }); Schema::create('article_author', function (Blueprint $table) { $table->increments('id'); $table->integer('article_id')->unsigned(); $table->integer('author_id')->unsigned(); $table->foreign('article_id')->references('id')->on('articles'); $table->foreign('author_id')->references('id')->on('authors'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('article_section'); Schema::drop('article_author'); Schema::drop('authors'); Schema::drop('sections'); Schema::drop('articles'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_12_16_102140_article_content_type_index.php
Beam/extensions/beam-module/database/migrations/2020_12_16_102140_article_content_type_index.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticleContentTypeIndex extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function (Blueprint $table) { $table->index(['content_type']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function (Blueprint $table) { $table->dropIndex(['content_type']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2020_09_18_114850_alter_segment_rules_pageview_load_flags.php
Beam/extensions/beam-module/database/migrations/2020_09_18_114850_alter_segment_rules_pageview_load_flags.php
<?php use Remp\BeamModule\Model\SegmentRule; use Illuminate\Database\Migrations\Migration; class AlterSegmentRulesPageviewLoadFlags extends Migration { /** * Changing pageview/load flag '_article' to 'is_article' * * @return void */ public function up() { foreach (SegmentRule::all() as $segmentRule) { $save = false; $flags = $segmentRule->flags; foreach ($flags as $k => $f) { if ($f['key'] === '_article') { $flags[$k]['key'] = 'is_article'; $save = true; } } if ($save) { $segmentRule->flags = $flags; $segmentRule->save(); } } } /** * Reverse the migrations. * * @return void */ public function down() { foreach (SegmentRule::all() as $segmentRule) { $save = false; $flags = $segmentRule->flags; foreach ($flags as $k => $f) { if ($f['key'] === 'is_article') { $flags[$k]['key'] = '_article'; $save = true; } } if ($save) { $segmentRule->flags = $flags; $segmentRule->save(); } } } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_11_14_125025_increase_title_length_in_articles_table.php
Beam/extensions/beam-module/database/migrations/2018_11_14_125025_increase_title_length_in_articles_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class IncreaseTitleLengthInArticlesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('articles', function (Blueprint $table) { $table->string('title', 768)->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('articles', function (Blueprint $table) { // }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2022_02_25_130852_dashboard_articles.php
Beam/extensions/beam-module/database/migrations/2022_02_25_130852_dashboard_articles.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class DashboardArticles extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('dashboard_articles', function(Blueprint $table) { $table->bigIncrements('id'); $table->integer('article_id')->unsigned(); $table->integer('unique_browsers')->nullable(); $table->timestamp('last_dashboard_time'); $table->timestamps(); $table->foreign('article_id')->references('id')->on('articles'); $table->index('last_dashboard_time'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('dashboard_articles'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2017_09_29_080257_segment_rule_flags.php
Beam/extensions/beam-module/database/migrations/2017_09_29_080257_segment_rule_flags.php
<?php use Remp\BeamModule\Model\SegmentRule; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class SegmentRuleFlags extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table("segment_rules", function (Blueprint $table) { $table->longText('flags')->comment("JSON encoded flags")->nullable(); }); DB::table("segment_rules")->update(['flags' => '[]']); Schema::table("segment_rules", function (Blueprint $table) { $table->longText('flags')->comment("JSON encoded flags")->nullable(false)->change(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table("segment_rules", function (Blueprint $table) { $table->dropColumn('flags'); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2018_11_29_091254_create_configs_table.php
Beam/extensions/beam-module/database/migrations/2018_11_29_091254_create_configs_table.php
<?php use Remp\BeamModule\Model\Config\Config; use Remp\BeamModule\Model\Config\ConfigNames; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateConfigsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('configs', function (Blueprint $table) { $table->increments('id'); $table->string('name')->unique(); $table->string('display_name'); $table->text('value')->nullable(); $table->text('description')->nullable(); $table->string('type')->default('text'); $table->integer('sorting')->default(10); $table->boolean('autoload')->default(true); $table->boolean('locked')->default(false); $table->timestamps(); }); $this->seedBeamDashboardConfigs(); } /** * Required configs for Dashboard, values are empirically defined */ private function seedBeamDashboardConfigs() { Config::firstOrCreate([ 'name' => ConfigNames::CONVERSIONS_COUNT_THRESHOLD_LOW, 'display_name' => 'Conversions count threshold low', 'type' => 'int', 'value' => 3 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSIONS_COUNT_THRESHOLD_MEDIUM, 'display_name' => 'Conversions count threshold medium', 'type' => 'int', 'value' => 8 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSIONS_COUNT_THRESHOLD_HIGH, 'display_name' => 'Conversions count threshold high', 'type' => 'int', 'value' => 13 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSION_RATE_THRESHOLD_LOW, 'display_name' => 'Conversion rate threshold low', 'type' => 'float', 'value' => 3.0 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSION_RATE_THRESHOLD_MEDIUM, 'display_name' => 'Conversion rate threshold medium', 'type' => 'float', 'value' => 5.0 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSION_RATE_THRESHOLD_HIGH, 'display_name' => 'Conversion rate threshold high', 'type' => 'float', 'value' => 7.0 ]); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('configs'); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/migrations/2021_05_11_113758_article_pageviews_indexes.php
Beam/extensions/beam-module/database/migrations/2021_05_11_113758_article_pageviews_indexes.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ArticlePageviewsIndexes extends Migration { /** * Run the migrations. * * @return void */ public function up() { // To speed up queries with filters (section, author) Schema::table('article_pageviews', function (Blueprint $table) { $table->index(['article_id', 'time_from', 'sum']); }); // To speed up query for top articles without filters Schema::table('article_pageviews', function (Blueprint $table) { $table->index(['time_from', 'article_id', 'sum']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('article_pageviews', function (Blueprint $table) { $table->dropIndex(['article_id', 'time_from', 'sum']); }); Schema::table('article_pageviews', function (Blueprint $table) { $table->dropIndex(['time_from', 'article_id', 'sum']); }); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/seeders/SegmentGroupSeeder.php
Beam/extensions/beam-module/database/seeders/SegmentGroupSeeder.php
<?php namespace Remp\BeamModule\Database\Seeders; use Illuminate\Database\Seeder; use Remp\BeamModule\Model\SegmentGroup; class SegmentGroupSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { SegmentGroup::firstOrCreate([ 'name' => 'REMP Segments', 'code' => SegmentGroup::CODE_REMP_SEGMENTS, 'type' => SegmentGroup::TYPE_RULE, 'sorting' => 100, ]); SegmentGroup::firstOrCreate([ 'name' => 'Section segments', 'code' => SegmentGroup::CODE_SECTIONS_SEGMENTS, 'type' => SegmentGroup::TYPE_EXPLICIT, 'sorting' => 200, ]); SegmentGroup::firstOrCreate([ 'name' => 'Author segments', 'code' => SegmentGroup::CODE_AUTHORS_SEGMENTS, 'type' => SegmentGroup::TYPE_EXPLICIT, 'sorting' => 200, ]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/database/seeders/ConfigSeeder.php
Beam/extensions/beam-module/database/seeders/ConfigSeeder.php
<?php namespace Remp\BeamModule\Database\Seeders; use Illuminate\Database\Seeder; use Remp\BeamModule\Model\Config\Config; use Remp\BeamModule\Model\Config\ConfigCategory; use Remp\BeamModule\Model\Config\ConfigNames; class ConfigSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $dashboardConfigCategory = ConfigCategory::firstOrCreate([ 'code' => ConfigCategory::CODE_DASHBOARD, 'display_name' => 'Dashboard' ]); Config::firstOrCreate([ 'name' => ConfigNames::DASHBOARD_FRONTPAGE_REFERER, 'config_category_id' => $dashboardConfigCategory->id, 'display_name' => 'Dashboard front-page referer', 'description' => 'For filtering traffic coming from a front page, please specify a referrer (e.g. https://dennikn.sk/, with trailing slash)', 'type' => 'string', 'value' => null, // by default, nothing specified ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSION_RATE_MULTIPLIER, 'config_category_id' => $dashboardConfigCategory->id, 'display_name' => 'Conversion rate multiplier', 'description' => 'Conversion rate multiplier', 'type' => 'integer', 'value' => 1 ]); Config::firstOrCreate([ 'name' => ConfigNames::CONVERSION_RATE_DECIMAL_NUMBERS, 'config_category_id' => $dashboardConfigCategory->id, 'display_name' => 'Conversion rate decimal numbers', 'description' => 'Number of decimal numbers shown when displaying conversion rate', 'type' => 'integer', 'value' => 5 ]); $authorSegmentsConfigCategory = ConfigCategory::firstOrCreate([ 'code' => ConfigCategory::CODE_SECTION_SEGMENTS, 'display_name' => 'Section Segments' ]); Config::firstOrCreate([ 'name' => ConfigNames::AUTHOR_SEGMENTS_MIN_RATIO, 'config_category_id' => $authorSegmentsConfigCategory->id, 'display_name' => 'Author segments criterion - minimal ratio', 'description' => 'Minimal ration of user/all articles read by user', 'type' => 'float', 'value' => 0.25 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::AUTHOR_SEGMENTS_MIN_AVERAGE_TIMESPENT, 'config_category_id' => $authorSegmentsConfigCategory->id, 'display_name' => 'Author segments criterion - minimal avegate timespent', 'description' => 'Minimal average time spent on author articles', 'type' => 'int', 'value' => 120 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::AUTHOR_SEGMENTS_MIN_VIEWS, 'config_category_id' => $authorSegmentsConfigCategory->id, 'display_name' => 'Author segments criterion - minimal number of pageviews', 'description' => 'Minimal number of page views of author articles', 'type' => 'int', 'value' => 5 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::AUTHOR_SEGMENTS_DAYS_IN_PAST, 'config_category_id' => $authorSegmentsConfigCategory->id, 'display_name' => 'Author segments days threshold', 'description' => 'Compute author segments from data not older than given number of days', 'type' => 'int', 'value' => 30 ]); $sectionSegmentsConfigCategory = ConfigCategory::firstOrCreate([ 'code' => ConfigCategory::CODE_SECTION_SEGMENTS, 'display_name' => 'Section Segments' ]); Config::firstOrCreate([ 'name' => ConfigNames::SECTION_SEGMENTS_MIN_RATIO, 'config_category_id' => $sectionSegmentsConfigCategory->id, 'display_name' => 'Section segments criterion - minimal ratio', 'description' => 'Minimal ration of user/all articles read by user', 'type' => 'float', 'value' => 0.25 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::SECTION_SEGMENTS_MIN_AVERAGE_TIMESPENT, 'config_category_id' => $sectionSegmentsConfigCategory->id, 'display_name' => 'Section segments criterion - minimal avegate timespent', 'description' => 'Minimal average time spent on author articles', 'type' => 'int', 'value' => 120 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::SECTION_SEGMENTS_MIN_VIEWS, 'config_category_id' => $sectionSegmentsConfigCategory->id, 'display_name' => 'Section segments criterion - minimal number of pageviews', 'description' => 'Minimal number of page views of author articles', 'type' => 'int', 'value' => 5 // empirical value ]); Config::firstOrCreate([ 'name' => ConfigNames::SECTION_SEGMENTS_DAYS_IN_PAST, 'config_category_id' => $sectionSegmentsConfigCategory->id, 'display_name' => 'Section segments days threshold', 'description' => 'Compute author segments from data not older than given number of days (allowed values: 30, 60, 90)', 'type' => 'int', 'value' => 30 ]); } }
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/lang/en/entities.php
Beam/extensions/beam-module/resources/lang/en/entities.php
<?php return [ "types" => [ \Remp\BeamModule\Model\EntityParam::TYPE_STRING => "String", \Remp\BeamModule\Model\EntityParam::TYPE_STRING_ARRAY => "StringArray", \Remp\BeamModule\Model\EntityParam::TYPE_NUMBER => "Number", \Remp\BeamModule\Model\EntityParam::TYPE_NUMBER_ARRAY => "NumberArray", \Remp\BeamModule\Model\EntityParam::TYPE_BOOLEAN => "Boolean", \Remp\BeamModule\Model\EntityParam::TYPE_DATETIME => "DateTime", ] ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/lang/en/passwords.php
Beam/extensions/beam-module/resources/lang/en/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are given by the password broker for a password update attempt | has failed, such as for an invalid token or invalid new password. | */ 'reset' => 'Your password has been reset!', 'sent' => 'We have e-mailed your password reset link!', 'throttled' => 'Please wait before retrying.', 'token' => 'This password reset token is invalid.', 'user' => "We can't find a user with that e-mail address.", ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/lang/en/pagination.php
Beam/extensions/beam-module/resources/lang/en/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pagination links. You are free to change them to anything | you want to customize your views to better match your application. | */ 'previous' => '&laquo; Previous', 'next' => 'Next &raquo;', ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/lang/en/validation.php
Beam/extensions/beam-module/resources/lang/en/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator class. Some of these rules have multiple versions such | as the size rules. Feel free to tweak each of these messages here. | */ 'accepted' => 'The :attribute must be accepted.', 'active_url' => 'The :attribute is not a valid URL.', 'after' => 'The :attribute must be a date after :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 'alpha' => 'The :attribute must only contain letters.', 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', 'alpha_num' => 'The :attribute must only contain letters and numbers.', 'array' => 'The :attribute must be an array.', 'before' => 'The :attribute must be a date before :date.', 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 'between' => [ 'numeric' => 'The :attribute must be between :min and :max.', 'file' => 'The :attribute must be between :min and :max kilobytes.', 'string' => 'The :attribute must be between :min and :max characters.', 'array' => 'The :attribute must have between :min and :max items.', ], 'boolean' => 'The :attribute field must be true or false.', 'confirmed' => 'The :attribute confirmation does not match.', 'date' => 'The :attribute is not a valid date.', 'date_equals' => 'The :attribute must be a date equal to :date.', 'date_format' => 'The :attribute does not match the format :format.', 'different' => 'The :attribute and :other must be different.', 'digits' => 'The :attribute must be :digits digits.', 'digits_between' => 'The :attribute must be between :min and :max digits.', 'dimensions' => 'The :attribute has invalid image dimensions.', 'distinct' => 'The :attribute field has a duplicate value.', 'email' => 'The :attribute must be a valid email address.', 'ends_with' => 'The :attribute must end with one of the following: :values.', 'exists' => 'The selected :attribute is invalid.', 'file' => 'The :attribute must be a file.', 'filled' => 'The :attribute field must have a value.', 'gt' => [ 'numeric' => 'The :attribute must be greater than :value.', 'file' => 'The :attribute must be greater than :value kilobytes.', 'string' => 'The :attribute must be greater than :value characters.', 'array' => 'The :attribute must have more than :value items.', ], 'gte' => [ 'numeric' => 'The :attribute must be greater than or equal :value.', 'file' => 'The :attribute must be greater than or equal :value kilobytes.', 'string' => 'The :attribute must be greater than or equal :value characters.', 'array' => 'The :attribute must have :value items or more.', ], 'image' => 'The :attribute must be an image.', 'in' => 'The selected :attribute is invalid.', 'in_array' => 'The :attribute field does not exist in :other.', 'integer' => 'The :attribute must be an integer.', 'ip' => 'The :attribute must be a valid IP address.', 'ipv4' => 'The :attribute must be a valid IPv4 address.', 'ipv6' => 'The :attribute must be a valid IPv6 address.', 'json' => 'The :attribute must be a valid JSON string.', 'lt' => [ 'numeric' => 'The :attribute must be less than :value.', 'file' => 'The :attribute must be less than :value kilobytes.', 'string' => 'The :attribute must be less than :value characters.', 'array' => 'The :attribute must have less than :value items.', ], 'lte' => [ 'numeric' => 'The :attribute must be less than or equal :value.', 'file' => 'The :attribute must be less than or equal :value kilobytes.', 'string' => 'The :attribute must be less than or equal :value characters.', 'array' => 'The :attribute must not have more than :value items.', ], 'max' => [ 'numeric' => 'The :attribute must not be greater than :max.', 'file' => 'The :attribute must not be greater than :max kilobytes.', 'string' => 'The :attribute must not be greater than :max characters.', 'array' => 'The :attribute must not have more than :max items.', ], 'mimes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.', 'min' => [ 'numeric' => 'The :attribute must be at least :min.', 'file' => 'The :attribute must be at least :min kilobytes.', 'string' => 'The :attribute must be at least :min characters.', 'array' => 'The :attribute must have at least :min items.', ], 'multiple_of' => 'The :attribute must be a multiple of :value.', 'not_in' => 'The selected :attribute is invalid.', 'not_regex' => 'The :attribute format is invalid.', 'numeric' => 'The :attribute must be a number.', 'password' => 'The password is incorrect.', 'present' => 'The :attribute field must be present.', 'regex' => 'The :attribute format is invalid.', 'required' => 'The :attribute field is required.', 'required_if' => 'The :attribute field is required when :other is :value.', 'required_unless' => 'The :attribute field is required unless :other is in :values.', 'required_with' => 'The :attribute field is required when :values is present.', 'required_with_all' => 'The :attribute field is required when :values are present.', 'required_without' => 'The :attribute field is required when :values is not present.', 'required_without_all' => 'The :attribute field is required when none of :values are present.', 'prohibited' => 'The :attribute field is prohibited.', 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', 'same' => 'The :attribute and :other must match.', 'size' => [ 'numeric' => 'The :attribute must be :size.', 'file' => 'The :attribute must be :size kilobytes.', 'string' => 'The :attribute must be :size characters.', 'array' => 'The :attribute must contain :size items.', ], 'starts_with' => 'The :attribute must start with one of the following: :values.', 'string' => 'The :attribute must be a string.', 'timezone' => 'The :attribute must be a valid zone.', 'unique' => 'The :attribute has already been taken.', 'uploaded' => 'The :attribute failed to upload.', 'url' => 'The :attribute format is invalid.', 'uuid' => 'The :attribute must be a valid UUID.', /* |-------------------------------------------------------------------------- | Custom Validation Language Lines |-------------------------------------------------------------------------- | | Here you may specify custom validation messages for attributes using the | convention "attribute.rule" to name the lines. This makes it quick to | specify a specific custom language line for a given attribute rule. | */ 'custom' => [ 'attribute-name' => [ 'rule-name' => 'custom-message', ], 'params' => [ 'required' => 'You have to specify at least one property.', ], ], /* |-------------------------------------------------------------------------- | Custom Validation Attributes |-------------------------------------------------------------------------- | | The following language lines are used to swap our attribute placeholder | with something more reader friendly such as "E-Mail Address" instead | of "email". This simply helps us make our message more expressive. | */ 'attributes' => [ 'parent_id' => 'parent', 'params.*.name' => 'param name', 'params.*.type' => 'param type', ], ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/lang/en/auth.php
Beam/extensions/beam-module/resources/lang/en/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages that we need to display to the user. You are free to modify | these language lines according to your application's requirements. | */ 'failed' => 'These credentials do not match our records.', 'password' => 'The provided password is incorrect.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', ];
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/welcome.blade.php
Beam/extensions/beam-module/resources/views/welcome.blade.php
@extends('beam::layouts.app') @section('content') @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/index.blade.php
Beam/extensions/beam-module/resources/views/authors/index.blade.php
@extends('beam::layouts.app') @section('title', 'Authors') @section('content') <div class="c-header"> <h2>Authors</h2> </div> <div class="well"> <div id="smart-range-selectors" class="row"> <div class="col-md-4"> <h4>Filter by publish date</h4> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callbackPublished"> </smart-range-selector> </div> <div class="col-md-4"> <h4>Filter by conversion date</h4> {{ html()->hidden('conversion_from', $conversionFrom) }} {{ html()->hidden('conversion_to', $conversionTo) }} <smart-range-selector from="{{$conversionFrom}}" to="{{$conversionTo}}" :callback="callbackConversion"> </smart-range-selector> </div> <div class="col-md-2"> <h4>Filter by article content type</h4> {{ html()->hidden('content_type', $contentType) }} <v-select name="content_type_select" :options="contentTypes" value="{{$contentType}}" title="all" liveSearch="false" v-on:input="callbackContentType" ></v-select> </div> </div> </div> <div class="card"> <div class="card-header"> <h2>Author stats <small></small></h2> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'header' => 'author', 'orderable' => false, 'filter' => $authors, 'priority' => 1, 'render' => 'link', ], 'articles_count' => [ 'header' => 'articles', 'priority' => 3, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_count' => [ 'header' => 'conversions', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'render' => 'number', 'className' => 'text-right' ], 'conversions_amount' => [ 'header' => 'amount', 'render' => 'array', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_all' => [ 'header' => 'all pageviews', 'render' => 'number', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_signed_in' => [ 'header' => 'signed in pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'pageviews_subscribers' => [ 'header' => 'subscriber pageviews', 'render' => 'number', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_all' => [ 'header' => 'avg time all', 'render' => 'duration', 'priority' => 2, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_signed_in' => [ 'header' => 'avg time signed in', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], 'avg_timespent_subscribers' => [ 'header' => 'avg time subscribers', 'render' => 'duration', 'priority' => 5, 'orderSequence' => ['desc', 'asc'], 'searchable' => false, 'className' => 'text-right' ], ], 'dataSource' => route('authors.dtAuthors'), 'order' => [3, 'desc'], 'requestParams' => [ 'published_from' => '$(\'[name="published_from"]\').val()', 'published_to' => '$(\'[name="published_to"]\').val()', 'conversion_from' => '$(\'[name="conversion_from"]\').val()', 'conversion_to' => '$(\'[name="conversion_to"]\').val()', 'content_type' => '$(\'[name="content_type"]\').val()', 'tz' => 'Intl.DateTimeFormat().resolvedOptions().timeZone' ], 'refreshTriggers' => [ [ 'event' => 'change', 'selector' => '[name="published_from"]' ], [ 'event' => 'change', 'selector' => '[name="published_to"]', ], [ 'event' => 'change', 'selector' => '[name="conversion_from"]' ], [ 'event' => 'change', 'selector' => '[name="conversion_to"]', ], [ 'event' => 'change', 'selector' => '[name="content_type"]', ], ], 'exportColumns' => [0,1,2,3,4,5,6,7,8,9], ]) !!} </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selectors", components: { SmartRangeSelector, vSelect }, data: function () { return { contentTypes: {!! @json($contentTypes) !!} } }, methods: { callbackPublished: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); }, callbackConversion: function (from, to) { $('[name="conversion_from"]').val(from); $('[name="conversion_to"]').val(to).trigger("change"); }, callbackContentType: function (contentType) { $('[name="content_type"]').val(contentType).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/show.blade.php
Beam/extensions/beam-module/resources/views/authors/show.blade.php
@extends('beam::layouts.app') @section('title', 'Show author - ' . $author->name) @section('content') <div class="c-header"> <h2>{{ $author->name }}</h2> </div> <div class="well"> <div class="row"> <div class="col-md-6"> <h4>Filter by publish date</h4> <div id="smart-range-selector"> {{ html()->hidden('published_from', $publishedFrom) }} {{ html()->hidden('published_to', $publishedTo) }} <smart-range-selector from="{{$publishedFrom}}" to="{{$publishedTo}}" :callback="callback"> </smart-range-selector> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h2>Show author <small>{{ $author->name }}</small></h2> </div> @include('beam::articles.subviews.dt_articles', ['dataSource' => route('authors.dtArticles', $author)]) </div> </div> <script type="text/javascript"> new Vue({ el: "#smart-range-selector", components: { SmartRangeSelector }, methods: { callback: function (from, to) { $('[name="published_from"]').val(from); $('[name="published_to"]').val(to).trigger("change"); } } }); </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/segments/compute.blade.php
Beam/extensions/beam-module/resources/views/authors/segments/compute.blade.php
@extends('beam::layouts.app') @section('title', 'Authors\' segments') @section('content') <div class="c-header"> <h2>Authors' segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Configuration <small></small></h2> </div> <div class="card-body card-padding"> Computation initiated, results will be sent to <b>{{ $email }}</b>. </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/segments/_test_form.blade.php
Beam/extensions/beam-module/resources/views/authors/segments/_test_form.blade.php
<form method="post" action="{{ route('authorSegments.compute') }}"> <form-validator url="{{route('authorSegments.validateTest')}}"></form-validator> <div class="col-md-6"> {{ csrf_field() }} <p class="c-black f-500 m-b-10">Minimal ratio of (author articles/all articles) read by user:</p> <div class="form-group"> <div class="fg-line"> <input id="min_ratio" class="form-control input-sm" value="{{ old('min_ratio') }}" name="min_ratio" required placeholder="e.g. 0.25 (value between 0.0 - 1.0)" type="number" step="0.01" min="0" max="1" /> </div> </div> <p class="c-black f-500 m-b-10">Minimal number of author articles read by user:</p> <div class="form-group"> <div class="fg-line"> <input id="min_views" class="form-control input-sm" value="{{ old('min_views') }}" placeholder="e.g. 5" required name="min_views" min="0" type="number" /> </div> </div> <p class="c-black f-500 m-b-10">Minimal average time spent on author's articles by user (seconds):</p> <div class="form-group"> <div class="fg-line"> <input id="min_average_timespent" class="form-control input-sm" value="{{ old('min_average_timespent') }}" required placeholder="e.g. 120 (value in seconds)" name="min_average_timespent" min="0" type="number" /> </div> </div> <p class="c-black f-500 m-b-10">Use data from the last:</p> <div class="radio m-b-15"> <label> {{ html()->radio('history', true, '30') }} <i class="input-helper"></i> 30 days </label> </div> <div class="radio m-b-15"> <label> {{ html()->radio('history', false, '60') }} <i class="input-helper"></i> 60 days </label> </div> <div class="radio m-b-15"> <label> {{ html()->radio('history', false, '90') }} <i class="input-helper"></i> 90 days </label> </div> <div class="form-group"> <div class="fg-line"> <input id="email" class="form-control input-sm" value="{{ old('email') }}" placeholder="Email to send results" name="email" type="text" required /> </div> </div> <input class="btn palette-Cyan bg waves-effect" type="submit" value="Compute" /> </div> </form>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/segments/configuration.blade.php
Beam/extensions/beam-module/resources/views/authors/segments/configuration.blade.php
@extends('beam::layouts.app') @section('title', 'Authors\' segments') @section('content') <div class="c-header"> <h2>Authors' segments</h2> </div> <div class="card"> <div class="card-header"> <h2>Test parameters<small></small></h2> </div> <div class="card-body card-padding"> <p>Here you can quickly test arbitrary parameters without recomputing the actual segments. <br /> After test parameters are specified, results containing number of users/browsers present in the segment of each author will be sent to provided email. </p> <div class="row"> @include('beam::authors.segments._test_form') </div> </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/segments/results_email.blade.php
Beam/extensions/beam-module/resources/views/authors/segments/results_email.blade.php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Authors Segments Results</title> </head> <body> <h3>Configuration</h3> <ul> <li>number of past days from which results are counted: <b>{{$history_days}}</b></li> <li>minimal ratio of (author articles/all articles): <b>{{$minimal_ratio}}</b></li> <li>minimal number of views or author articles: <b>{{$minimal_views}}</b> <br/></li> <li>minimal average time spent on author articles: <b>{{$minimal_average_timespent}}</b></li> </ul> <h3>Results</h3> @if($results) <table> <tr> <th>Author Segment</th> <th>Browsers Count</th> <th>Users Count</th> </tr> @foreach ($results as $row) <tr> <td>{{$row->name}}</td> <td>{{$row->browser_count}}</td> <td>{{$row->user_count}}</td> </tr> @endforeach </table> @else <p>No author segments found for given configuration.</p> @endif </body> </html>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/authors/segments/index.blade.php
Beam/extensions/beam-module/resources/views/authors/segments/index.blade.php
@extends('beam::layouts.app') @section('title', 'Author Segments') @section('content') <div class="c-header"> <h2>Author Segments</h2> </div> <div class="card"> <div class="card-header"> <h2>List of author segments <small></small></h2> <div class="actions"> <div class="dropdown"> <a href="#" class="dropdown-toggle btn btn-info palette-Cyan bg waves-effect" data-toggle="dropdown" aria-expanded="false"><i class="zmdi zmdi-settings"></i> More options</a> <ul class="dropdown-menu"> <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ $authorSegmentsSettingsUrl }}">Configuration</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ route('authorSegments.testingConfiguration') }}">Test parameters</a></li> </ul> </div> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'priority' => 2, 'render' => 'text', ], 'code' => [ 'priority' => 2, 'render' => 'text', ], 'users_count' => [ 'header' => 'Users count', 'priority' => 1, 'className' => 'text-right', ], 'browsers_count' => [ 'header' => 'Browsers count', 'priority' => 2, 'className' => 'text-right', ], 'created_at' => [ 'render' => 'date', 'header' => 'Created at', 'priority' => 3, 'className' => 'text-right', ], ], 'dataSource' => route('authorSegments.json'), 'order' => [2, 'desc'], 'exportColumns' => [0,1,2,3,4], ]) !!} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/newsletters/edit.blade.php
Beam/extensions/beam-module/resources/views/newsletters/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit newsletter') @section('content') <div class="c-header"> <h2>Newsletters</h2> </div> <div class="card"> <div class="card-header"> <h2>Edit newsletter <small></small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($newsletter, 'PATCH')->route('newsletters.update', $newsletter)->open() }} @include('beam::newsletters._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/newsletters/_form.blade.php
Beam/extensions/beam-module/resources/views/newsletters/_form.blade.php
<div id="newsletters-form"> <form-validator url="{{route('newsletters.validateForm')}}"></form-validator> <div class="row"> <div class="col-md-6 form-group"> <div class="input-group fg-float m-t-10"> <span class="input-group-addon"><i class="zmdi zmdi-label"></i></span> <div class="fg-line"> {{ html()->label('Name')->attribute('class', 'fg-label') }} {{ html()->text('name', $newsletter->name)->attribute('class', 'form-control fg-input') }} </div> </div> <div class="input-group"> <?php $disabled = empty($segments); ?> <span class="input-group-addon"><i class="zmdi <?= $disabled ? 'zmdi-close-circle palette-Red text' : 'zmdi-wallpaper' ?>"></i></span> <div class="row"> <div class="col-md-12 form-group"> {{ html()->label('Segment')->attribute('class', 'fg-label') }} {{ html()->select('segment', $segments, $newsletter->segment)->attributes( array_filter([ 'class' => 'selectpicker', 'data-live-search' => 'true', 'placeholder' => !$disabled ? 'Please select...' : 'No segments are available on Mailer, please configure them first', 'disabled' => $disabled ? 'disabled' : null ]) ) }} </div> </div> </div> <div class="input-group m-t-10"> <?php $disabled = $generators->isEmpty(); ?> <span class="input-group-addon"><i class="zmdi <?= $disabled ? 'zmdi-close-circle palette-Red text' : 'zmdi-settings' ?>"></i></span> <div class="row"> <div class="col-md-12 form-group"> {{ html()->label('Generator')->attribute('class', 'fg-label') }} {{ html()->select('mailer_generator_id', $generators, $newsletter->mailer_generator_id)->attributes( array_filter([ 'class' => 'selectpicker', 'data-live-search' => 'true', 'placeholder' => !$disabled ? 'Please select...' : 'No source templates using best_performing_articles generator were configured on Mailer', 'disabled' => $disabled ? 'disabled' : null, ]) ) }} </div> </div> </div> <div class="input-group m-t-10"> <?php $disabled = $mailTypes->isEmpty(); ?> <span class="input-group-addon"><i class="zmdi <?= $disabled ? 'zmdi-close-circle palette-Red text' : 'zmdi-settings' ?>"></i></span> <div class="row"> <div class="col-md-12 form-group"> {{ html()->label('Mail Type')->attribute('class', 'fg-label') }} {{ html()->select('mail_type_code', $mailTypes, $newsletter->mail_type_code)->attributes( array_filter([ 'class' => 'selectpicker', 'data-live-search' => 'true', 'placeholder' => !$disabled ? 'Please select...' : 'No mail types are available on Mailer, please configure them first', 'disabled' => $disabled ? 'disabled' : null, ]) ) }} </div> </div> </div> <h5>Articles selection</h5> <div class="input-group m-t-20"> <span class="input-group-addon"><i class="zmdi zmdi-key"></i></span> <div class="row"> <div class="col-md-12 form-group"> {{ html()->label('Criterion')->attribute('class', 'fg-label') }} {{ html()->select('criteria', $criteria, $newsletter->criteria)->attributes([ 'class' => 'selectpicker', 'placeholder' => 'Please select...', ]) }} </div> </div> </div> <div class="input-group m-t-10"> <span class="input-group-addon"><i class="zmdi zmdi-time-interval"></i></span> <div class="fg-line"> <label class="fg-label">Criterion timespan (how old articles are included)</label> {{ html()->text('timespan', $newsletter->timespan)->attributes([ 'class' => 'form-control fg-input', 'placeholder' => "e.g. 3d 1h 4m", 'required' => 'required', ]) }} </div> </div> <div class="input-group m-t-15"> <span class="input-group-addon"><i class="zmdi zmdi-file-text"></i></span> <div class="fg-line"> {{ html()->label('How many articles')->attribute('class', 'fg-label') }} {{ html()->number('articles_count', $newsletter->articles_count, 1, 100)->attribute('class', 'form-control fg-input') }} </div> </div> <div class="input-group m-t-30 checkbox large-tooltip"> <label class="m-l-15"> Personalized content {{ html()->checkbox('personalized_content', $newsletter->personalized_content) }} <i class="input-helper"></i> <span data-toggle="tooltip" data-original-title="For each user, select only those articles he/she has not read yet." class="glyphicon glyphicon-question-sign"></span> </label> </div> <h5 class="m-t-30">Email parameters</h5> <div class="input-group m-t-20"> <span class="input-group-addon"><i class="zmdi zmdi-email"></i></span> <div class="fg-line"> {{ html()->label('Email subject')->attribute('class', 'fg-label') }} {{ html()->text('email_subject', $newsletter->email_subject)->attributes([ 'class' => 'form-control fg-input', 'placeholder' => 'e.g. "Top 10 articles this week"', ]) }} </div> </div> <div class="input-group m-t-10"> <span class="input-group-addon"><i class="zmdi zmdi-arrow-right"></i></span> <div class="fg-line"> {{ html()->label('Email from')->attribute('class', 'fg-label') }} {{ html()->text('email_from', $newsletter->email_from)->attributes([ 'class' => 'form-control fg-input', 'placeholder' => 'e.g. REMP <info@remp2020.com>', ]) }} </div> </div> </div> </div> <div class="row"> <div class="col-md-6 form-group"> <h5>Start date and recurrence</h5> <div class="m-t-20"> {{ html()->hidden('starts_at', $newsletter->starts_at) }} {{ html()->hidden('recurrence_rule', $newsletter->recurrence_rule_inline) }} @php $recurrence = old('recurrence_rule', $newsletter->recurrence_rule_inline); $recurrence = $recurrence !== null ? "'{$recurrence}'" : 'null'; @endphp <recurrence-selector start-date="{{ old('starts_at', $newsletter->starts_at) }}" :recurrence="{{ $recurrence }}" :callback="callback"> </recurrence-selector> </div> </div> <div class="col-md-6"> <h5 v-show="rrule" style="margin-top: 14px">Next few recurrences (up to 10):</h5> <rule-ocurrences :rrule='rrule'></rule-ocurrences> </div> <div class="col-md-12"> <div class="input-group m-t-10"> <div class="fg-line"> <input type="hidden" name="action" :value="submitAction"> <button class="btn btn-info waves-effect" type="submit" name="action" value="save" @click="submitAction = 'save'"> <i class="zmdi zmdi-check"></i> Save </button> <button class="btn btn-info waves-effect" type="submit" name="action" value="save_close" @click="submitAction = 'save_close'"> <i class="zmdi zmdi-mail-send"></i> Save and close </button> </div> </div> </div> </div> </div> <script type="text/javascript"> function formatDateUtc(d) { return d.getUTCFullYear() + "-" + ("0"+(d.getUTCMonth()+1)).slice(-2) + "-" + ("0"+d.getUTCDate()).slice(-2) + " " + ("0" + d.getUTCHours()).slice(-2) + ":" + ("0" + d.getUTCMinutes()).slice(-2) + ":" + ("0" + d.getUTCSeconds()).slice(-2); } new Vue({ el: "#newsletters-form", components: { RecurrenceSelector, RuleOcurrences, FormValidator }, data: function() { return { rrule: null, submitAction: null } }, methods: { callback: function (startsAt, recurrenceRule) { this.rrule = recurrenceRule $('[name="starts_at"]').val(formatDateUtc(new Date(startsAt))); $('[name="recurrence_rule"]').val(recurrenceRule); } } }); </script>
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/newsletters/index.blade.php
Beam/extensions/beam-module/resources/views/newsletters/index.blade.php
@extends('beam::layouts.app') @section('title', 'Newsletters') @section('content') <div class="c-header"> <h2>Newsletters</h2> </div> <div class="card"> <div class="card-header"> <h2>List of newsletters <small></small></h2> <div class="actions"> <a href="{{ route('newsletters.create') }}" class="btn palette-Cyan bg waves-effect">Add new newsletter</a> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'newsletter' => [ 'priority' => 1, 'render' => 'link' ], 'segment' => [ 'priority' => 2, 'render' => 'segmentCode' ], 'starts_at' => [ 'render' => 'date', 'header' => 'Starts at', 'priority' => 3, ], 'created_at' => [ 'render' => 'date', 'header' => 'Created at', 'priority' => 3, ], 'state' => [ 'header' => 'State', 'priority' => 1, ], ], 'dataSource' => route('newsletters.json'), 'rowActions' => [ ['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit newsletter'], ['name' => 'start', 'class' => 'zmdi-palette-Cyan zmdi-play', 'title' => 'Start newsletter'], ['name' => 'pause', 'class' => 'zmdi-palette-Cyan zmdi-pause', 'title' => 'Pause newsletter'], ['name' => 'destroy', 'class' => 'zmdi-palette-Cyan zmdi-delete', 'title' => 'Delete newsletter'], ], 'order' => [4, 'desc'], ]) !!} </div> <script> $.fn.dataTables.render.segmentCode = function () { return function (data) { return data.split("::")[1]; } } </script> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/newsletters/create.blade.php
Beam/extensions/beam-module/resources/views/newsletters/create.blade.php
@extends('beam::layouts.app') @section('title', 'Create newsletter') @section('content') <div class="c-header"> <h2>Newsletters</h2> </div> <div class="card"> <div class="card-header"> <h2>Create new newsletter <small></small></h2> </div> <div class="card-body card-padding"> @include('flash::message') {{ html()->modelForm($newsletter)->route('newsletters.store')->open() }} @include('beam::newsletters._form') {{ html()->closeModelForm() }} </div> </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/auth/error.blade.php
Beam/extensions/beam-module/resources/views/auth/error.blade.php
@extends('beam::layouts.auth') @section('title', 'Error') @section('content') <div class="lb-header palette-Teal bg"> <i class="zmdi zmdi-account-circle"></i> <p>There was an error signing you in.</p> <p>If you believe this shouldn't happen, please contact your administrator.</p> </div> <div class="lb-body"> {{ $message }} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/settings/index.blade.php
Beam/extensions/beam-module/resources/views/settings/index.blade.php
@extends('beam::layouts.app') @section('title', 'Settings') @section('content') <div class="c-header"> <h2>Settings</h2> </div> <div class="card"> <div class="card-header"> <div class="row"> <div class="col"> <ul id="myTab" class="tab-nav tn-justified" role="tablist"> @foreach($configsByCategories as $category => $configs) <li role="presentation" class="{{$loop->index === 0 ? 'active' : ''}}"> <a class="col-sx-4" href="#{{$configs[0]->configCategory->code}}" aria-controls="{{$configs[0]->configCategory->code}}" role="tab" data-toggle="tab" aria-expanded="true"> {{$category}} </a> </li> @endforeach </ul> </div> </div> </div> <div class="card-body card-padding"> @include('flash::message') <div class="row"> <div class="tab-content p-20"> @foreach($configsByCategories as $category => $configs) <div role="tabpanel" class="tab-pane animated fadeIn {{$loop->index === 0 ? 'active' : ''}}" id="{{$configs[0]->configCategory->code}}"> <form method="post" action="{{ route('settings.update', ['configCategory' => $configs[0]->configCategory, 'redirect_url' => Remp\BeamModule\Model\Config\ConfigCategory::getSettingsTabUrl($configs[0]->configCategory->code)]) }}"> {{ csrf_field() }} @if($configs[0]->configCategory->code === Remp\BeamModule\Model\Config\ConfigCategory::CODE_AUTHOR_SEGMENTS) <div class="well col"> <p><i class="zmdi zmdi-info"></i> Before you configure author segments, you can test the parameters at the configuration testing page. When you are satisfied with the resulting segments, you can get back here and configure the final parameters for calculation.</p> <a href="{{ route('authorSegments.testingConfiguration') }}" id="author-testing-link" class="btn btn-info waves-effect">Test Configuration</a> </div> @elseif($configs[0]->configCategory->code === Remp\BeamModule\Model\Config\ConfigCategory::CODE_SECTION_SEGMENTS) <div class="well col"> <p><i class="zmdi zmdi-info"></i> Before you configure section segments, you can test the parameters at the configuration testing page. When you are satisfied with the resulting segments, you can get back here and configure the final parameters for calculation.</p> <a href="{{ route('sectionSegments.testingConfiguration') }}" id="section-testing-link" class="btn btn-info waves-effect">Test Configuration</a> </div> @endif <div class="col-md-6"> @foreach($configs as $config) <p class=" f-500 m-b-10"><span class="c-black">{{ $config->display_name ?? $config->name}}</span> <small> @if($config->description) <br />{{$config->description}} @endif </small> </p> <div class="form-group"> <div class="fg-line"> <input type="text" name="settings[{{$config->name}}]" value="{{old('settings.' . $config->name, $config->value)}}" class="form-control fg-input"> </div> </div> @endforeach <button type="submit" name="save" value="Save" class="btn btn-info waves-effect"> <i class="zmdi zmdi-mail-send"></i> Save </button> </div> </form> </div> @endforeach </div> </div> </div> </div> @endsection @push('scripts') <script> $(document).ready(() => { let url = location.href.replace(/\/$/, ""); if (location.hash) { const hash = url.split("#"); $('#myTab a[href="#'+hash[1]+'"]').tab("show"); setTimeout(() => { $(window).scrollTop(0); }, 400); } $('a[data-toggle="tab"]').on("click", function() { let newUrl; const hash = $(this).attr("href"); newUrl = url.split("#")[0] + hash; history.replaceState(null, null, newUrl); }); }); </script> @endpush
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/entities/edit.blade.php
Beam/extensions/beam-module/resources/views/entities/edit.blade.php
@extends('beam::layouts.app') @section('title', 'Edit entity: ' . $entity->name) @section('content') <div class="c-header"> <h2>Edit entity: {{ $entity->name }}</h2> </div> <div class="container"> @include('flash::message') {{ html()->modelForm($entity, 'PATCH')->route('entities.update', $entity)->attribute('class', 'entity-form')->open() }} @include('beam::entities._form') {{ html()->closeModelForm() }} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/entities/_form.blade.php
Beam/extensions/beam-module/resources/views/entities/_form.blade.php
<div id="entity-form"> <entity-form></entity-form> </div> @push('scripts') <script type="text/javascript"> let entity = { "parent_id": '{!! $entity->parent_id !!}' || null, "name": '{!! $entity->name !!}', "params": {!! @json($entity->params) !!}, "types": {!! @json(\Remp\BeamModule\Model\EntityParam::getAllTypes()) !!}, "rootEntities": {!! @json($rootEntities) !!} || null, "validateUrl": {!! @json(route('entities.validateForm', ['entity' => $entity])) !!} }; remplib.entityForm.bind("#entity-form", entity); </script> @endpush
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false
remp2020/remp
https://github.com/remp2020/remp/blob/c616d27734c65eb87b470751928ff1119c535549/Beam/extensions/beam-module/resources/views/entities/index.blade.php
Beam/extensions/beam-module/resources/views/entities/index.blade.php
@extends('beam::layouts.app') @section('title', 'Entities') @section('content') <div class="c-header"> <h2>Entities</h2> </div> <div class="card"> <div class="card-header"> <h2>List of entities <small></small></h2> <div class="actions"> <a href="{{ route('entities.create') }}" class="btn palette-Cyan bg waves-effect">Add new entity</a> </div> </div> {!! Widget::run('DataTable', [ 'colSettings' => [ 'name' => [ 'orderable' => true, 'priority' => 1, 'render' => 'link', ], 'params' => [ 'header' => 'Params', 'orderable' => false, 'priority' => 2, 'render' => 'array', ] ], 'dataSource' => route('entities.json'), 'rowActions' => [ ['name' => 'edit', 'class' => 'zmdi-palette-Cyan zmdi-edit', 'title' => 'Edit entity'] ] ]) !!} </div> @endsection
php
MIT
c616d27734c65eb87b470751928ff1119c535549
2026-01-05T05:12:01.604239Z
false